Sequence-Based Problems
1. Input a price and discount percentage, then calculate the discounted price.
2. Input a number and display its square and cube.
3. Convert a time in 24-hour format to 12-hour format.
4. Calculate the speed from distance and time.
5. Input marks for 3 subjects and calculate percentage and total.
🔹 Decision-Based Problems
6. Input a number and check if it is prime using a simple condition (not loop-based).
7. Input a year and check if it is a century year or not (e.g., 1900, 2000).
8. Input a temperature and determine if it’s cold, moderate, or hot.
9. Input the side lengths of a triangle and check if it is scalene, isosceles, or equilateral.
10. Check whether a character is uppercase, lowercase, or not a letter.
🔹 Iteration-Based Problems
11. Input n and calculate the sum of all odd numbers up to n.
12. Generate the multiplication tables from 1 to 10.
13. Display the reverse of a given number using a loop.
14. Input n and find the sum of digits using a loop.
15. Input a number and count how many times each digit appears.
🔹 Mixed Concept Problems
16. Input multiple exam scores and calculate the average and highest score.
17. Input a string and count the number of vowels and consonants.
18. Input a number and check if it is an automorphic number (e.g., 76² = 5776 → ends in 76).
19. Simulate a basic ATM withdrawal system (check balance, deduct amount, update balance).
20. Input a 3-digit number and check if all digits are different.
Input a price and discount percentage, then calculate the discounted price.
2. Input a number and display its square and cube.
3. Convert a time in 24-hour format to 12-hour format.
4. Calculate the speed from distance and time.
5. Input marks for 3 subjects and calculate percentage and total.
🔹 Decision-Based Problems
6. Input a number and check if it is prime using a simple condition (not loop-based).
7. Input a year and check if it is a century year or not (e.g., 1900, 2000).
8. Input a temperature and determine if it’s cold, moderate, or hot.
9. Input the side lengths of a triangle and check if it is scalene, isosceles, or equilateral.
10. Check whether a character is uppercase, lowercase, or not a letter.
🔹 Iteration-Based Problems
11. Input n and calculate the sum of all odd numbers up to n.
12. Generate the multiplication tables from 1 to 10.
13. Display the reverse of a given number using a loop.
14. Input n and find the sum of digits using a loop.
15. Input a number and count how many times each digit appears.