+ 1

Can't we use scanf() twice in a program?

Scanf function is not working twice in programmes in playground of sololearn . Is it the compilers fault or its true that we can't use scanf twice???

28th Jul 2019, 1:43 PM
Sanjaya Acharya
Sanjaya Acharya - avatar
2 odpowiedzi
+ 3
You can use it any number of times.
29th Jul 2019, 1:50 AM
Sonic
Sonic - avatar
+ 2
You have to give input for all scanf statements in the begging each input should be separated by space or enter https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
28th Jul 2019, 2:06 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar