So, I wrote this:
I thought this will go char by char and check if any char is a digit in line. So Im wondering why it doesnt work?Code:#include <stdio.h> #include <ctype.h> int main() { char m; while(m=getchar() !='\n') { if(isdigit(m)) printf("There is a number in line"); } }