+ 6
Whats wrong with this code?
11 Answers
+ 6
hv u run it successfully?
+ 5
very tough 😿😿
+ 4
thanks MEET MEHTA Sousou ...now i understand finally😊
+ 4
thanks Kevin 😇
+ 3
Jason Edelson how?
+ 1
works fine for me, make sure on solo learn to give 3 inputs all on different lines
+ 1
When asked for input
Write 1(for addition)
and than enter two number you want to add.
Example :
1
2
5
+ 1
Yes
+ 1
Crystal!!:
The problem is in sololearn not in program;
When input Write:
E.g:
1
5
7
Output will be:
5 + 7 = 12
+ 1
The Program is fine: you need to enter all input variables in the first screen that opens (this is a sololearn issue and not your doing.) SO when the prompt comes up and says looks like your program needs input you must put all 3 variables in at that time separated by a new line.
eg
3
2
3
your code will then work and not through a End of file error as you code is looking for all three
result in the above would be
3 selected "Multiply"
2 x 3 = 6
Cheers
Kevin
+ 1
didn't we ought to have declared our variables giving return types?a,b,input and choice?