+ 2
PLEASE Help me! C scanf
I need to create a code that reads a character from the keyboard and returns its value as a number (ASCII table). When I use the printf to print the char input as %d, I have the number, but that's not what I need. I need to read the character as a number and address it to an int variable to compare the value to know if the user typed a letter or a number. Somebody help me, PLEASE!
3 Answers
+ 7
Is this what you mean?
https://code.sololearn.com/c1nDxoSzxvdH/?ref=app
+ 2
No worries Tamy đ!
+ 1
YES Rowsej âșïžâșïžâșïž
Thank you so much!