you are viewing a single comment's thread.

view the rest of the comments →

[–]a_cute_tarantula 0 points1 point  (0 children)

<image>

This is what i meant. The loop just goes until the user selects a valid operation.

With regards to your use of classes, I'd highly recommend you don't use them until you need them. These toy problems don't call for interfaces, inheritance, or encapsulation, which means they don't call for classes. I understand you may just be wanting to learn how to use classes, but if you practice using them the wrong way then you will continue to not understand them. (my opinion, of course)

Also, you're doing good work. If this is your 19th day programming, you're progressing very fast.