home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 98.img / LCNOW2.ZIP / EXAMPLES / READNUM.C < prev    next >
C/C++ Source or Header  |  1988-02-12  |  261b  |  16 lines

  1. /*
  2.  * R E A D N U M 
  3.  *
  4.  * Read a number from the keyboard and print
  5.  * it on the screen.
  6.  */
  7.  
  8. main()
  9. {
  10.     int number;
  11.  
  12.     printf("Enter a whole number and press ENTER: ");
  13.     scanf("%d", &number);
  14.     printf("\nThe number you typed is %d.\n", number);
  15. }
  16.