DAY04
Monday, 21 May 2012
-
earth_division.c, a program which estimates
how much land we could evenly allocate every person on the earth; we will
try to do this exercise using integer arithmetic, and then switch to real
arithmetic.
-
p4.1.c, a program from the book, which suggests
how you can declare and print variables of different types;
-
p4.4.c, a program from the book, which examines
the "modulus" or "remainder" function. Notice what we have to do to
trick the printf statement into actually printing a percent sign.
-
square_root.c, a simple program to compute
the square root of a number;
-
square_root2.c, a more complicated version
of the square root program;
Last revised on 21 May 2012.