+ 1
Help, this simple calculator on running shows 'Compilation error'. Can anyone tell me whats wrong with the code?
4 ответов
+ 13
Couple of errors, correct all and tell me if it works:
Line 4, you return the value x but you declared the function as void type, change it to int.
Line 8, delete the endline at cin, it's cin and not cout.
Line 12, you did a spelling mistake with the name of the function.
Line 27, syntax error, correct it to 'else if'.
Line 35, you can't do the assignment like python, you need to do this:
double x = enterNumber(), y = enterNumber();
+ 10
https://code.sololearn.com/c9DuVC7Cz163/?ref=app
look and ask questions if u dont understand smth😉
+ 8
Well done!
I liked the code!
+ 1
lol the errors xddd
tysm coders!