Answer


The ``%d'' is replaced with the value of the integer variable time, and the ``%f'' is replaced with the value of the floating point variable velocity. So if the value of time is 12 and the value of velocity is 9.8, the output message would look something like this:

      At time 12, the velocity is 9.80000.

Return to lesson.



Eric N. Eide
Hamlet Project
Department of Computer Science
University of Utah