Why my switch case statement (calculator ) not working?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why my switch case statement (calculator ) not working??

https://code.sololearn.com/crsvekn1iz3a/?ref=app

8th May 2020, 7:18 PM
Basudev paul
Basudev paul - avatar
4 Answers
+ 3
the console on sololearn platform its not interactive so you must give all input at once. in real console app it will work for input step by step ,but some programs you must change to work on sololearn or they will break. idk why it is, but maybe there is a reason. Web apps work in real time just not C/C++/python/java.
8th May 2020, 7:37 PM
Gen2oo
Gen2oo - avatar
+ 1
Enter all the inputs at once and at seperate lines like this 4 6 +
8th May 2020, 7:21 PM
Abhay
Abhay - avatar
0
Abhay why I can't do it step by step...?? I made it like this that it would ask me for input in every step but its showing all at once ..why!!?
8th May 2020, 7:23 PM
Basudev paul
Basudev paul - avatar
0
Gen2oo Thankyou so much .... I just have checked it on other compilor they are working each step wise.... its really not working only on solo learn... I really don't know as well ... but I guess they send the code to the server then they send the output ... it doesn't compile on our handset ... so thats why might be it doesn't provide the interactive part .. might be but Im not fully sure..
8th May 2020, 7:42 PM
Basudev paul
Basudev paul - avatar