home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c021 / 7.img / EXAMPLES.ZIP / INTRO5.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-04  |  440 b   |  21 lines

  1. /* INTRO5.C--Example from Chapter 4 of Getting Started */
  2.  
  3. #include <stdio.h>
  4.  
  5. int main()
  6. {
  7.    int   int_num = 999;
  8.    float float_num = 99.99895;
  9.    long  double big_num = 1250500750.75;
  10.  
  11.    printf("12345678901234567890\n");
  12.    printf("%d\n", int_num);
  13.    printf("%6d\n", int_num);
  14.    printf("%f\n", float_num);
  15.    printf("%6.3f\n", float_num);
  16.    printf("%e\n", big_num);
  17.    printf("%Le\n", big_num);
  18.  
  19.    return 0;
  20. }
  21.