home *** CD-ROM | disk | FTP | other *** search
- /*------------------------------------------------------------------*/
- /* ╡{ªí└╔ªW║┘: wat80.c */
- /*------------------------------------------------------------------*/
- #include <stdio.h>
- #include <math.h>
-
- void main()
- {
- double result;
- double x = 7.0;
- double y = 24.0;
-
- result = hypot(x, y);
- printf("sqrt(%5.2f*%5.2f+%5.2f*%5.2f) = %5.2f\n",x,x,y,y,result);
- }