When you execute the volume-computing program, presuming that you
have named it box_car
, you could witness the following:
box_car <-- You type Please type three integers. <-- Your program types 11 9 40 <-- You type The volume of a 11 by 9 by 40 box car is 3960. <-- Your program types
When you use the box_car
program, you can use spaces,
tabs, or carriage returns to separate the integers and to mark
the end of the final integer.
Note that, if you are using the Unix operating system, the
characters that you type accumulate temporarily in an input
buffer before delivery to your program. Delivery occurs only
when you type a carriage return. Accordingly, the box_car
program lies inert until you not only type three integers, but
also supply a carriage return following the third one.
Spaces separate integers | | v v 11 9 40 <-- Carriage return marks the end of a line of input and delivers the accumulated characters to your program