Next: About this document ...
Up: DO Loop Basics
Previous: Some Perspective

Checkoff

Write a program that reads in a positive integer ``N'' and then calculates and prints the product of all of the numbers between 1 and N, inclusive. For example, if N is 5, your program should print 120 (which is 1*2*3*4*5).

Homework

There is no homework with this lesson.


Next: About this document ...
Up: DO Loop Basics
Previous: Some Perspective

Hamlet Project
hamlet@cs.utah.edu