If I input any character, z does not show any output | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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