+ 2

Q:why scanf is not responding well, why it skips the value of s??

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

24th Mar 2022, 6:08 PM
Saumya Mishra
Saumya Mishra - avatar
3 odpowiedzi
+ 5
https://stackoverflow.com/questions/13372923/scanf-wont-ask-for-input-the-second-time
24th Mar 2022, 6:27 PM
Amrita
Amrita - avatar
+ 2
For a single char input, you could use getchar() (Another option is getch() but that is from conio.h that is depreciated in current compilers) f=getchar();
24th Mar 2022, 7:14 PM
HungryTradie
HungryTradie - avatar
+ 1
without space input like : yyyyyyyyyyn with space you give input like : y y y y n Or yyyyyyyyn
24th Mar 2022, 7:31 PM
Jayakrishna 🇮🇳