Did you try long long or unsigned long long? You could always just read a string and check each digit to see if it's a number until you run out of string.Code:char buf[ BUFSIZ ]; scanf( "%[^0-9]\n", buf ); printf( "You entered: %s\n", buf );
Quzah.