Can someone help me. trying to use a loop but first i have a problem with my last scanf. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can someone help me. trying to use a loop but first i have a problem with my last scanf.

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

6th Sep 2022, 12:49 PM
Shashashaerk
Shashashaerk - avatar
3 Answers
+ 1
If you want run this code on sololearn then you have to use int main() at the place of void main() And add return 0; also add closing curly braces . else you can use void also but there is closing curly braces are missing
6th Sep 2022, 12:57 PM
Pallavi Jha
Pallavi Jha - avatar
+ 1
You are not closed main function. add } at end. And scanf works but how are you using it?
6th Sep 2022, 12:54 PM
Jayakrishna 🇮🇳
+ 1
I see, thank you
7th Sep 2022, 3:35 AM
Shashashaerk
Shashashaerk - avatar