What are the errors in this code.kindly guide me. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What are the errors in this code.kindly guide me.

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

28th Jul 2020, 2:44 PM
Abhishek
7 Answers
0
Just read your program and analyse it that you first printing information for giving input.. And taking input into variable a. If you enter 1, then it is need for 2 more number(b, c) for addition. Result display b+c. So input for this give, ex: 1 (press enter) 2 (press enter) 5 (press submit) Output : 7 if you enter 2,then it is ask 2 inputs(d, e), and display subtraction result d-e. So input: ex: 2 9 8 Output : 1 If you enter 3,then it is need 2more inputs(f, g), display result for multiplication f*g. So input :ex: 3 4 5 Output : 20 If you enter 4,it ask inputs (h, i), and then display division (h/I).. So input :ex: 4 3 2 Output: 1.5 Hope it clears..
29th Jul 2020, 10:15 AM
Jayakrishna 🇮🇳
+ 4
The input of data when working with playground is a bit special. All your inputs has to be given in advance, before code starts executing. Find more info in the attached file: https://code.sololearn.com/c8pQgA9MTOj5/?ref=app
28th Jul 2020, 4:03 PM
Lothar
Lothar - avatar
0
Why you added continue in code...? Is you working with loop? Then where is loop Either remove continue or add loop with must add exit or quit condition. Otherwise it become Infinite loop...
28th Jul 2020, 2:49 PM
Jayakrishna 🇮🇳
0
Ok.i removed continue, now it's not taking any input
28th Jul 2020, 2:59 PM
Abhishek
0
Kindly tell me what to write, when asked to give advance input in my particular code.I'm a beginner in SoloLearn.
29th Jul 2020, 5:58 AM
Abhishek
0
Thanks'Lothar' & Jayakrishna for your guidance.My doubt is cleared
29th Jul 2020, 10:29 AM
Abhishek
0
You're welcome..
29th Jul 2020, 10:35 AM
Jayakrishna 🇮🇳