Lab Manual 6
Lab Manual 6
Task 1:
1, 2, 3, 4, 5, 6, 7, 8, 9....................10000
Task 2:
Write a Program in C++ that calculate the factorial of a user defined number, using for loop
Task 3:
Task 4:
Average of Values to get the average of a series of values, you add the values up and then divide the
sum by the number of values. Write a program to find average of first 10 natural numbers using for loop.
The program should first calculate the sum of these ten values and store the result in a separate variable
named sum. Then, the program should divide the sum variable by 10 to get the average. Display the
average on the screen.
Task 5:
Write a C++ program to print multiplication table of any number using for loops.