+ 1

If I input any character, z does not show any output

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

7th May 2022, 11:08 AM
R123 R123
R123 R123 - avatar
2 Antworten
+ 2
It taking space into character. Add a space before %c like: scanf("%d %f %c",&x,&y,&z);
7th May 2022, 11:15 AM
Jayakrishna 🇮🇳
0
Need to take the whole input in as a string and parse it. That line is too easy to error.
7th May 2022, 12:26 PM
William Owens
William Owens - avatar