0% found this document useful (0 votes)
33 views2 pages

Practice Program

The document outlines a practice program consisting of 16 programming tasks. These tasks include printing natural numbers, patterns, calculating sums and factorials, generating Fibonacci series, and finding prime numbers. The exercises are designed to enhance programming skills through various loops and mathematical operations.

Uploaded by

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

Practice Program

The document outlines a practice program consisting of 16 programming tasks. These tasks include printing natural numbers, patterns, calculating sums and factorials, generating Fibonacci series, and finding prime numbers. The exercises are designed to enhance programming skills through various loops and mathematical operations.

Uploaded by

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

Practice Program

1: Print first 10 natural numbers using while loop

2: Print the following pattern

1 2

1 2 3

1 2 3 4

1 2 3 4 5

3: Calculate sum of all numbers from 1 to a given number

4: Print multiplication table of a given number

5: Count the total number of digits in a number

6: Print list in reverse order using a loop

7 Display numbers from -10 to -1 using for loop

8: Print all prime numbers within a range

9: Display Fibonacci series up to 10 terms

10: Find the factorial of a given number

11: Reverse a integer number

12: Calculate the cube of all numbers from 1 to a given number

13: Find the sum of a series of a number up to n terms

14: Print the following pattern

15: Print Full Multiplication Table

16: Find largest and smallest digit in a number

You might also like