home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
98.img
/
LCNOW2.ZIP
/
EXAMPLES
/
READNUM.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-02-12
|
261b
|
16 lines
/*
* R E A D N U M
*
* Read a number from the keyboard and print
* it on the screen.
*/
main()
{
int number;
printf("Enter a whole number and press ENTER: ");
scanf("%d", &number);
printf("\nThe number you typed is %d.\n", number);
}