0
what is wrong with my c++ code?
im trying to make a c++ calculator, but its not working the way i intended. this is the code. https://code.sololearn.com/c0gxpXORiRYA/# i intended for the code to repeat itself from the beginning once if num3 is less than 1 or more than 5 without printing the sum(because there would be none). the problem is that if they enter num3 as any of the correct numbers(1, 2, 3, 4, or 5) after entering the wrong one, it repeats itself again and again no matter what you input, and never reveals the sum.
1 ответ
+ 1
Candy Maniac
It's working.. But you write same code twice. That's no need. You can write it with one while or just use do while start from first if is wrong input..
BTW what is your intended way..?