100_Problem_Solving_Questions
100_Problem_Solving_Questions
Decision-Making Problems
• - Find the maximum of two numbers.
• - Find the minimum of two numbers.
• - Determine if a number is divisible by both 5 and 11.
• - Check if a year is a leap year.
• - Determine if a character is a vowel or consonant.
• - Find the largest of three numbers.
• - Check if a number is within a given range.
• - Calculate the grade based on percentage input.
• - Determine if a person is eligible to vote.
• - Check if three sides form a valid triangle.
Loop-Based Problems
• - Print the multiplication table of a given number.
• - Calculate the sum of digits of a number.
• - Reverse a given number.
• - Count the number of digits in a number.
• - Check if a number is an Armstrong number.
• - Generate the Fibonacci series up to N terms.
• - Find the factorial of a number using a loop.
• - Calculate the sum of squares of the first N natural numbers.
• - Determine if a number is prime.
• - Print all prime numbers up to N.
Real-Life Scenarios
• - Calculate the total cost with tax for a given product price.
• - Convert Celsius to Fahrenheit.
• - Convert kilometers to miles.
• - Calculate the BMI (Body Mass Index) given height and weight.
• - Calculate the area and perimeter of a rectangle.
• - Calculate the area and circumference of a circle.
• - Calculate the simple interest and compound interest.
• - Determine the monthly installment (EMI) for a loan.
• - Simulate a basic calculator using if-else conditions.
• - Convert hours and minutes into seconds.
Problem-Specific Challenges
• - Find all factors of a number.
• - Check if a number is a perfect number.
• - Check if a number is a palindrome.
• - Check if a number is a Harshad number.
• - Determine if a number is a strong number.
• - Find the GCD (HCF) of two numbers using loops.
• - Find the LCM of two numbers using loops.
• - Check if a number is a Kaprekar number.
• - Generate Pascal’s triangle up to N rows.
• - Count the number of trailing zeroes in a factorial.
Logical Challenges
• - Determine if a number is a power of 2.
• - Check if a number is a perfect square.
• - Calculate the sum of the first N odd numbers.
• - Calculate the sum of the first N even numbers.
• - Print the Nth prime number.
• - Find the sum of all prime numbers up to N.
• - Find the product of all digits in a number.
• - Check if a number is a magic number.
• - Find the digital root of a number.
• - Check if a number is a spy number.
Miscellaneous Problems
• - Convert a decimal number to binary.
• - Convert a decimal number to octal.
• - Convert a decimal number to hexadecimal.
• - Find the sum of the digits of a number until a single digit is obtained.
• - Swap two numbers without using a third variable.
• - Check if a number is divisible by 7.
• - Calculate the sum of cubes of the first N natural numbers.
• - Find the difference between the sum of squares and the square of the sum for the
first N natural numbers.
• - Calculate the average of N numbers.
• - Determine if a number is abundant, deficient, or perfect.