Lab3: Week of Aug 15-19
 



1. Write a program to compute factorial of a given number. Make sure
that your program gives an error message in case factorial is not
defined for the number.
     
2. Consider an arithmetic progression. Given its first term, increment
and number of terms write a program to compute sum of the progression.

3. Consider a harmonic progression generated from the terms of the
arithmetic progression in the above exercise. Write a program to compute
sum of the progression.