0

how i can forcing user to inpute alphabet whith out numbers in c language?

27th Sep 2019, 5:35 AM
Hesham Aamer
Hesham Aamer - avatar
2 Réponses
+ 3
write it in a comment at the top of your code and give a message if the input was invalid...
27th Sep 2019, 5:56 AM
Anton Böhler
Anton Böhler - avatar
+ 2
You can check your input for numbers and repeat getting input if the string contained a number. The Sololearn playground is different though because the code is run on a server not on your device. For Sololearn Anton Böhler's solution is better :)
27th Sep 2019, 5:56 AM
Aaron Eberhardt
Aaron Eberhardt - avatar