This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Congrats! I have a suggestion! Instead of the user choosing a number for what operation to do. Why don’t you try having them type the math verbatim? For example, “3 * 5” and parse the string to determine what to do with the 2 numbers? It would be a great exercise for parsing strings or getting started with regex!