- Program to find maximum between two numbers
- Program to find maximum between two numbers using functions
- Program to find maximum between three numbers
- Program to find maximum between three numbers using functions
- Program to check whether a number is negative, positive or zero
- Program to check whether a number is divisible by 5 and 11 or not
- Program to check whether a number is divisible by 5 and 11 or not using boolean operators
- Program to check whether a number is even or odd
- Program to check whether a year is leap year or not
- Program to input any character and check whether it is alphabet, digit or special character
- Program to input any alphabet and check whether it is vowel or consonant
- Program to check whether a character is uppercase or lowercase alphabet
- Program to input week number and print week day
- Program to input week number and print week day using switch
- Program to input week number and print week day using an array
- Program to input month number and print month name and number of days in that month
- Program to input month number and print month name and number of days in that month using a map
- Program to input angles of a triangle and check whether triangle is valid or not
- Program to check whether the triangle is equilateral, isosceles or scalene triangle
- Program to find all roots of a quadratic equation
- Program to calculate profit or loss
- Program to input marks of five subjects Physics, Chemistry, Biology, Mathematics and Computer. Calculate percentage and grade according to 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
- Program to input basic salary of an employee and calculate its Gross salary according to following:
- Basic Salary <= 10000 : HRA = 20%, DA = 80%
- Basic Salary <= 20000 : HRA = 25%, DA = 90%
- Basic Salary > 20000 : HRA = 30%, DA = 95%
- Program to input electricity unit charges and calculate total electricity bill according to the given condition:
- For first 50 units Rs. 0.50/unit
- For next 100 units Rs. 0.75/unit
- For next 100 units Rs. 1.20/unit
- For unit above 250 Rs. 1.50/unit
- An additional surcharge of 20% is added to the bill