home *** CD-ROM | disk | FTP | other *** search
- // Example: 155 from Library Reference
- #include "..\3D-Ware\dddware.h"
- #include <stdio.h> // This is required for the printf() function.
- short count, num;
- short main(void)
- {
- for (count=0; count<23; count++) // Do a few iterations.
- {
- num+=10; // Increase the source value.
- printf("The truncated integer value of the Square Root of %d is %d\n",num,dddSquareRoot(num));
- // Print the value and the square root of the value.
- }
- return 0; // Bye.
- }
-