if-else

  1. Program to find largest number between two numbers.

  2. Program to find largest number between three numbers.

  3. Program to find second largest number between three numbers.

  4. Program to check whether the given number is positive, negative or zero.

  5. Program to print wishes according to the time given in hours.

  6. Program to check whether given alphapet is vowel or consonant.

  7. Program to check whether given character is alphabet, digit or symbol.

  8. Write a 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