0

Can anyone help me out in this ? What is wrong ? I cant understand 😅

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

28th Feb 2021, 6:13 PM
Adi
Adi - avatar
6 Answers
+ 1
Your code is littered with invisible, stray characters the compiler does not recognize, and you used while twice, at the start and end of the loop. I assume you wanted to use a do-while loop instead. Here is a clean version: https://code.sololearn.com/cRJ9wCaZ7S04/?ref=app
28th Feb 2021, 6:22 PM
Shadow
Shadow - avatar
+ 1
What do you mean? Your code is already set up in a way that entering 4 will break the loop.
28th Feb 2021, 6:37 PM
Shadow
Shadow - avatar
0
Thank you very much..and what should i do so it doesn't gets repeated again and again ?
28th Feb 2021, 6:32 PM
Adi
Adi - avatar
0
Okay thank you
28th Feb 2021, 6:44 PM
Adi
Adi - avatar
0
At first scanf("%d %d %d",&a,& choice,&b)
2nd Mar 2021, 5:33 AM
Ankit Kumar
Ankit Kumar - avatar