Babbage problem
This could certainly be written more concisely. Extra verbiage is included to make the process more clear.
Output:
More concisely (but clear enough to allow Mr. Babbage to understand what's going on?):
Output:
Notice that `exit` ends the process itself instead of ending just the loop, as `last` would. `exit` would arguably be easier to understand for Babbage though, so it may better fill the task requirement.
Last updated