Can anyone help me out. Why I'm getting error on my code. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can anyone help me out. Why I'm getting error on my code.

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

17th Apr 2021, 5:58 PM
Satyam Keshri
Satyam Keshri - avatar
6 Answers
+ 4
Got it!!! Thanks Rohit , Shadow .
17th Apr 2021, 6:08 PM
Satyam Keshri
Satyam Keshri - avatar
+ 3
Your else case on line 33 has an opening brace, but no closing brace.
17th Apr 2021, 6:05 PM
Shadow
Shadow - avatar
+ 2
put one more "}" before while (line number - 57)
17th Apr 2021, 6:06 PM
Rohit Kh
Rohit Kh - avatar
+ 2
Your Passion It's do-while loop!
17th Apr 2021, 6:16 PM
Satyam Keshri
Satyam Keshri - avatar
0
+ You have while loop without code block.
17th Apr 2021, 6:14 PM
Kashyap Kumar
Kashyap Kumar - avatar
0
Satyam Keshri oh yeah, I didn't notice
17th Apr 2021, 6:17 PM
Kashyap Kumar
Kashyap Kumar - avatar