Lab3: Week of Jan 16-20
 



Assignment 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.


Assignment 2:
Consider an arithmetic progression. Given its first term, increment and number of terms write a program to compute sum of the progression.


Assignment 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.