Could this entire program be put inside of a loop?
Yes, and if it were in a real gas pump it probably would. Of course, the input would come from other parts of the gas pump as well.
You have reached the end of this chapter. You might wish to pick one of the following terms to review: