home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a120 / 1.ddi / WATCOM_C / WAT80.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-27  |  435 b   |  16 lines

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat80.c                                              */
  3. /*------------------------------------------------------------------*/
  4. #include <stdio.h>
  5. #include <math.h>
  6.  
  7. void main()
  8. {
  9.    double result;
  10.    double x = 7.0;
  11.    double y = 24.0;
  12.  
  13.    result = hypot(x, y);
  14.    printf("sqrt(%5.2f*%5.2f+%5.2f*%5.2f) = %5.2f\n",x,x,y,y,result);
  15. }
  16.