Write a program to find the maximum between two numbers.
Write a program to find the maximum between three numbers.
Write a program to check whether a number is negative, positive, or zero.
Write a program to check whether a number is divisible by 5 and 11.
Write a program to check whether a number is even or odd.
Write a program to check whether a year is a leap year or not.
Write a program to check whether a character is an alphabet.
Write a program to input any alphabet and check whether it is a vowel or consonant.
Write a program to input any character and check whether it is the alphabet, digit, or special character.
Write a program to check whether a character is an uppercase or lowercase alphabet.
Write a program to input the week number and print the weekday.
Write a program to input the month number and print the number of days in that month.
Write a program to count the total number of notes in a given amount. Available Notes (500, 200, 100, 50, 20, 10, 5, 2, 1).
Write a program to input the angles of a triangle and check whether a triangle is valid or not.
Write a program to input all sides of a triangle and check whether a triangle is valid or not.
Write a program to check whether the triangle is an equilateral, isosceles, or scalene triangle.
Write a program to find all roots of a quadratic equation.
Write a program to calculate profit or loss, where the buy value and the sell value are given.
Write a program to input marks in five subjects Physics, Chemistry, Biology, Mathematics, and Computer. Calculate the percentage and grade according to the following:
Percentage >= 90% : Grade A
Percentage >= 80% : Grade B
Percentage >= 70% : Grade C
Percentage >= 60% : Grade D
Percentage >= 40% : Grade E
Percentage < 40% : Grade F
Write a program to input the basic salary of an employee and calculate its Gross salary according to the following:
Basic Salary <= 10000 : HRA = 20%, DA = 80%
Basic Salary <= 20000 : HRA = 25%, DA = 90%
Basic Salary > 20000 : HRA = 30%, DA = 95%
Write a program to input electricity unit charges and calculate the total electricity bill according to the given condition:
For the first 50 units Rs. 0.50/unit
For the next 100 units Rs. 0.75/unit
For the next 100 units Rs. 1.20/unit
For units above 250 Rs. 1.50/unit
An additional surcharge of 20% is added to the bill