home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_08_08
/
8n08123b
< prev
next >
Wrap
Text File
|
1990-07-18
|
335b
|
20 lines
#include <stdio.h>
#include <math.h>
#include <ctype.h>
void main()
{
double x,y ;
for ( x = 1.0; x <= 25.0; (x = x + 1.0) )
{
y = sqrt(x) * sqrt(x);
if (y != x)
printf("%5.1f %21.17f %10.2e\n", x, y, x-y);
}
}
LISTING 4