/***************************************************************
Statement - Get input from user
Programmer - Vineet Choudhary
Written For - http://developerinsider.co
Compiler - gcc
***************************************************************/
#include <stdio.h>
int main()
{
int number;
printf( "Please enter a number: " );
scanf( "%d", &number);
printf( "You entered %d", number );
return 0;
}
/*
Output
Run1 -
Please enter a number: 10
You entered 10
Run2 -
Please enter a number: 20
You entered 20
*/
Compilers -