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

Get Input From User

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)
39 views1 page

Get Input From User

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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy