// arith.ds // Start with simple integer and float arithmetic function void main() { int i, j, k; float x, y, z; // Initialize some simple integer values. i = 1; j = 2; k = 3; // Now, print them out. println(" The value of 'i + j * k' should be (7): ", i + j * k ); // Try the same with REALs. x = 1.0; y = 3.14159; z = -(x * y); // Copy a REAL to an INTEGER x = -z; // Print out a buncha-junk println; println(" We should get -PI and 3 "); println(" The value of z and k are ", z, " and ", k ); println; // Show mixed type arithmetic operations. x = 1; z = x * y; println(" We should, again, get PI "); println(" The value of Z is ", z ); println("\n\t--==>> That's all, Folks! "); }