Whats wrong with this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
2nd Aug 2018, 4:50 AM
Crystal!!!😎
Crystal!!!😎 - avatar
11 Answers
+ 6
hv u run it successfully?
2nd Aug 2018, 5:57 AM
Crystal!!!😎
Crystal!!!😎 - avatar
+ 5
very tough 😿😿
2nd Aug 2018, 6:52 AM
Crystal!!!😎
Crystal!!!😎 - avatar
+ 4
thanks MEET MEHTA Sousou ...now i understand finally😊
2nd Aug 2018, 8:08 AM
Crystal!!!😎
Crystal!!!😎 - avatar
+ 4
thanks Kevin 😇
3rd Aug 2018, 3:57 AM
Crystal!!!😎
Crystal!!!😎 - avatar
2nd Aug 2018, 5:10 AM
Crystal!!!😎
Crystal!!!😎 - avatar
+ 1
works fine for me, make sure on solo learn to give 3 inputs all on different lines
2nd Aug 2018, 4:59 AM
JME
+ 1
When asked for input Write 1(for addition) and than enter two number you want to add. Example : 1 2 5
2nd Aug 2018, 5:20 AM
Meet Mehta
Meet Mehta - avatar
+ 1
Yes
2nd Aug 2018, 6:14 AM
Meet Mehta
Meet Mehta - avatar
+ 1
Crystal!!: The problem is in sololearn not in program; When input Write: E.g: 1 5 7 Output will be: 5 + 7 = 12
2nd Aug 2018, 7:45 AM
Sousou
Sousou - avatar
+ 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
3rd Aug 2018, 3:38 AM
Kevin
Kevin - avatar
+ 1
didn't we ought to have declared our variables giving return types?a,b,input and choice?
4th Aug 2018, 4:56 AM
Ramabaka Nkobolo
Ramabaka Nkobolo - avatar