Suagnth Py Lab
Suagnth Py Lab
Date : 17.10.2024
Exercise No : 1
1. Problem Statement:
2. Logic :
3. Program :
Exercise No : 2
1. Problem Statement:
2. Logic :
3. Program :
4. Output:
Exercise No : 3
1. Problem Statement:
2. Logic :
3. Program :
4. Output:
Exercise No : 4
1. Problem Statement:
2. Logic :
3. Program :
4. Output:
Exercise No : 5
1. Problem Statement:
2. Logic :
To find the value of factorial of the given number by using if-else logic
and while loop.
3.
4. Output:
Exercise No : 6
1. Problem Statement:
2. Logic:
3. Program :
4. Output:
Exercise No : 7
1. Problem Statement:
3. Program :
4. Output:
Exercise No : 8
1. Problem Statement:
3. Program :
4. Output:
Exercise No : 9
1. Problem Statement:
2. Logic:
3. Program :
4. Output:
Exercise No : 10
1. Problem Statement:
2. Logic:
4. Output:
Exercise No : 11
1. Problem Statement:
2. Logic:
To check if the input year is a leap year or not using if else logic.
3. Program :
4. Output:
Exercise No : 12
1. Problem Statement:
2. Logic:
3. Program :
4. Output:
Exercise No : 13
1. Problem Statement:
2. Logic:
To check whether a number is Armstrong or not using For loop and if-
else statement.
3. Program :
Exercise No : 14
1. Problem Statement:
2. Logic:
3. Program :
4. Output:
Exercise No : 15
1. Problem Statement:
2. Logic:
4. Output:
Exercise No : 16
1. Problem Statement:
2. Logic:
3. Program :
4. Output:
Exercise No : 17
1. Problem Statement:
2. Logic:
3. Program :
Exercise No : 18
1. Problem Statement:
2. Logic:
3. Program :
4. Output:
************************************************