take a long from stdin c code example Example: get user input c int c; printf( "Enter a value :"); c = getchar( );