0% found this document useful (0 votes)
47 views1 page

Get Input From User

The document is a C program that prompts the user to input a number and then displays that number. It includes basic input and output functions using the standard library. The program is written by Vineet Choudhary and is intended for use with the gcc compiler.

Uploaded by

mally4d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views1 page

Get Input From User

The document is a C program that prompts the user to input a number and then displays that number. It includes basic input and output functions using the standard library. The program is written by Vineet Choudhary and is intended for use with the gcc compiler.

Uploaded by

mally4d
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

/***************************************************************

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
*/

You might also like