Even though it would never get to that command line?
Yup. Even though the line would never be seen, it's still supposed to be there.
The program doesn't even need it to know it ends.
IIRC, it's a holdover from ancient times when memory was more volatile. A loop may be broken. So, you still include the END.
I learned all those languages in high school computer class. I remember reading the textbooks for the computer class from front cover to back cover the very first day of school. I never got a single question wrong on a single test the whole school year. People were accusing me of being a computer LoL
My only formal course was about programming in C, but I had other courses that included some programming as a part of them. I was well into college by this point. However, my high school had a few fancy computers from back in the early 70s and I used those.
Frankly, I didn't even like computers for a long time. They were a pain in the ass and slower than i could often do in my head or with a calculator. Computers didn't really do anything, unless you made them do something.
(post is archived)