Questions are based on Conditional Statements :
- Write a Python program to determine whether a given number is even or odd.
- Write a Python program to find the largest of three numbers.
- Write a Python program to calculate a student's grade based on their percentage.
- Write a Python program to check if a person is eligible to vote based on their age.
- Write a Python program to determine whether a given number is positive, negative, or zero.
- Write a Python program to classify a triangle as equilateral, isosceles, or scalene based on its side lengths.
- Write a Python program to determine if a given year is a leap year.
- Write a Python program to calculate the profit or loss based on the cost price and selling price of a product.
- Write a Python program to calculate the total amount to be paid after applying a discount based on the purchase amount.
- Write a Python program to check if a number is divisible by both 3 and 5.
- Write a Python program to determine whether a given character is a vowel or a consonant.
- Write a Python program to find the roots of a quadratic equation using conditional statements to handle different cases (real, imaginary, equal roots).
- Write a simple calculator using conditional statements to perform different arithmetic operations based on user input.
- Write a Python program to convert temperature between Celsius and Fahrenheit using conditional statements.
- Write a Python program to print three numbers in ascending order.