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

  1. /*********************************************************************
  2. *  CH03_05.C                            OpΘrateur sΘquentiel   *
  3. *********************************************************************/
  4.  
  5. #include<stdio.h>     
  6.  
  7. main( void)
  8. {
  9.     int x, y= 5;
  10.     double Test, z;
  11.  
  12.     Test= ( x= y- 1, z= x* y/ 1.3, z- x);
  13.     /* c'est la derniΦre des trois expressions, ici z- x,
  14.        qui est affectΘe α la variable Test                     */
  15.  
  16.     printf("\n Test= %lf", Test);
  17. }
  18.  
  19. /*
  20.  Test= 11.384615
  21.  
  22.  Trouvez vous cette Θcriture trΦs lisible?
  23.  
  24.  Ne prΘfΘrez vous pas:
  25.  x= y- 1;
  26.  z= x* y/ 1.3;
  27.  Test= x- y;                                */
  28.