Index of /cse121/lecture/week03

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [   ] convertLoop1.c 18-Jul-2008 10:59 1.1K [   ] convertLoop2.c 18-Jul-2008 10:36 965 [   ] convertLoop3.c 18-Jul-2008 13:27 1.1K [   ] scanf1.c 16-Jul-2008 15:10 1.4K [   ] scanf2.c 16-Jul-2008 15:31 1.1K [   ] scanf3.c 18-Jul-2008 10:25 1.0K
Lab 2 notes based on various questions:

* There is no power or exponent operator in C.
  To square a number simply multiply it by itself: aSquared = a * a
  There is a pow() function in the math library (math.h), but it is not
  intended that you use it for this lab.

* Remember that you use "%f" in printf() to print floating point numbers
  (type float and type double). See the temperature conversion example.

* The scanf() conversion modifier for type float is "%f"
  The scanf() conversion modifier for type double is "%lf"
  ("ell", "eff", and the "ell" is lower-case)
  See Table 16.5 on page 355