Which is larger: the sum of evens or the sum of odds? Does the answer to this question change if the limit value is even or odd?

A good answer might be:

Perhaps you should run the program to find out.

Factorial

You have probably encountered the definition of N Factorial:


N Factorial == N! == N * (N-1) * (N-2) * (N-3) * . . . 4 * 3 * 2 * 1

For example,


6! == 6 * 5 * 4 * 3 * 2 * 1 == 720
Here are a few other parts to the definition: N must be a positive integer, and 0! is defined to be 1.

Let us write a program that will compute N! for a value of N that the user enters. The program is to check that the number the user entered is positive (including zero), then use the definition to compute the factorial.

QUESTION 6:

Say that the user enters a 5. How (in general) is the program going to calculate 5 factorial?

Click Here after you have answered the question