0

How take a input only as numbers in c? If it’s character I want it to display “error”.

26th Nov 2019, 3:36 PM
Jirapat Panyacharoen
2 odpowiedzi
+ 4
For example (with an int): int x; scanf("%d", &x);
26th Nov 2019, 3:39 PM
HonFu
HonFu - avatar