C stdio input code example
Example 1: read from stdin c
#include <stdio.h>
int main( ) {
char str[100];
int i;
printf( "Enter a value :");
scanf("%s %d", str, &i);
printf( "\nYou entered: %s %d ", str, i);
return 0;
}
Example 2: get user input c
int c;
printf( "Enter a value :");
c = getchar( );