how to input a file in c programming from the console in getchar code example Example: get user input c int c; printf( "Enter a value :"); c = getchar( );