home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_100
/
191_01
/
testc.c
< prev
next >
Wrap
Text File
|
1986-07-10
|
380b
|
20 lines
/* file testc.C */
#include "a:stdio.h"
#include "a:math.h"
main()
{ int i ; float sq(),cu() ;
for (i= 0; i < 15 ; i++)
printf("%d %f %f\n",i,sq( (float) i),cu( (float) i) ) ;
}
/* routines from library file, USRLIB.B*/
/****************************************/
float sq(x) float x ;
{return(x*x) ; }
/**/
float cu(x) float x ;
{return(x*sq(x)) ; }
/**/