home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / dos / prg / alb_c10 / chap_02 / ch02_07.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-08  |  551 b   |  23 lines

  1. /*********************************************************************
  2. *  CH02_07.C          Quelques erreurs α Θviter quand on utilise des *
  3. *                 nombres de dimensions trΦs diffΘrentes. *
  4. *********************************************************************/
  5.  
  6. #include<stdio.h>     
  7.  
  8. main( void)
  9. {
  10.     double x0= 50, x1= 1e30, x2= -1e30, y0, y1;
  11.  
  12.  
  13.     y0= x1+ x0+ x2;
  14.     printf(" y0= %lf\n", y0);
  15.  
  16.     y1= x1+ x2+ x0;
  17.     printf(" y1= %lf", y1);
  18. }
  19.  
  20. /*  Le programme nous affiche:
  21.  
  22.  y0= 0.000000
  23.  y1= 50.000000                                */