0% found this document useful (0 votes)
13 views

Lab Manual 6

The document is a lab manual containing five programming tasks in C++. Task 1 requires displaying numbers from 1 to 10,000, while Task 2 involves calculating the factorial of a user-defined number using a for loop. Additional tasks include creating an infinite for loop, calculating the average of the first 10 natural numbers, and printing a multiplication table for any number.

Uploaded by

groundedblogger1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Lab Manual 6

The document is a lab manual containing five programming tasks in C++. Task 1 requires displaying numbers from 1 to 10,000, while Task 2 involves calculating the factorial of a user-defined number using a for loop. Additional tasks include creating an infinite for loop, calculating the average of the first 10 natural numbers, and printing a multiplication table for any number.

Uploaded by

groundedblogger1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

LAB MANUAL 6

Task 1:

Write a Program That Display numbers from

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:

Write a C++ program for infinite for loop.

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.

You might also like