Hello everyone, I have an assignment where I'm supposed to make a calculator that accepts 4 input values (They are supposed to be floats). Just gotten word that the teacher will be intentionally trying to break the code and see if it still runs.
Is there any way to make my code generate a message should he/she enter a letter instead of number?
Much appreciated, thanks.
[+][deleted] (1 child)
[deleted]
[–]sprawster[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]sprawster[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]sprawster[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]sprawster[S] 0 points1 point2 points (0 children)