0
What are the errors in this code.kindly guide me.
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..
+ 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
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...
0
Ok.i removed continue, now it's not taking any input
0
Kindly tell me what to write, when asked to give advance input in my particular code.I'm a beginner in SoloLearn.
0
Thanks'Lothar' & Jayakrishna for your guidance.My doubt is cleared
0
You're welcome..