+ 1
If I input any character, z does not show any output
2 ответов
+ 2
It taking space into character.
Add a space before %c like:
scanf("%d %f %c",&x,&y,&z);
0
Need to take the whole input in as a string and parse it. That line is too easy to error.