1.
Check Even or Odd:
Write a program that checks whether a number entered by the user is even or odd.
2. Check Positive, Negative, or Zero:
Take a number input and check if it is positive, negative, or zero.
3. Largest of Two Numbers:
Take two numbers from the user and print the largest one.
4. Largest of Three Numbers:
Write a program to find the largest among three numbers.
5. Leap Year Checker:
Input a year and check whether it is a leap year or not.
6. Grade Calculator:
Input marks and print the grade:
○ 90-100: A
○ 80-89: B
○ 70-79: C
○ Below 70: Fail
7. Check Vowel or Consonant:
Input a character and check whether it's a vowel or a consonant.
8. Age Group Classifier:
Input age and print:
○ 0–12: Child
○ 13–19: Teen
○ 20–59: Adult
○ 60+: Senior
9. Number is in Range or Not:
Check whether a number is between 10 and 50.
10.Even/Odd and Positive/Negative Together:
Take an integer input and print whether it is:
● Even or odd
● Positive or negative
Print 1 to 10:
Use a loop to print numbers from 1 to 10.
Sum of N Natural Numbers:
Take a number input and find the sum of all numbers from 1 to that number.
Multiplication Table:
Print the multiplication table of any number (e.g. 5).
Factorial of a Number:
Find the factorial of a number using a loop.
Print Even Numbers between 1 to 100:
Use a loop to print all even numbers from 1 to 100.
Reverse a Number:
Input a number and reverse it using a loop.
(e.g. input: 123 → output: 321)
Sum of Digits of a Number:
Input a number and print the sum of its digits.
(e.g. 123 → 1+2+3 = 6)
Count Digits in a Number:
Input a number and count how many digits it has.
Check Prime Number:
Input a number and check whether it is prime or not.
Fibonacci Series:
Print the first n terms of the Fibonacci sequence.
1. Check for Alphabet Case and Type:
Input a character. Check if it is an alphabet, then check if it's a vowel or consonant,
and also whether it's uppercase or lowercase.
1. Eligibility for Driving License:
○ Input age and nationality.
○ If age > 18, and nationality is Indian, then print "Eligible".
○ Else "Not Eligible".
2. Triangle Validity and Type Checker:
○ Input 3 sides.
○ First check if a triangle is valid.
○ If valid, check whether it's Equilateral, Isosceles, or Scalene.
3. Password Strength Checker:
○ Input a password string.
○ Check if it contains more than 8 characters.
○ Then check if it has both letters and numbers.
4. Marks-based Result System:
○ Input 5 subject marks.
○ If total is > 40%, then check if each subject is more than 35.
○ If yes → pass; else → fail.
Pattern Printing – Star Pyramid:
*
**
***
****
6. Use nested for loop.
7. Multiplication Table from 1 to 5:
Print tables of 1 to 5 using nested loops.
8. Matrix Addition (2D Lists):
○ Input 2 matrices (2x2).
○ Use nested loops to add them.
9. Print Prime Numbers from 1 to 100:
○ Outer loop: 1 to 100
○ Inner loop: Check prime for each number
10.Check Armstrong Numbers from 1 to 1000:
● Use nested logic:
○ Outer loop from 1 to 1000
○ Inner logic: sum of cube of digits = number