Skip to content

Problems to solve on if else #1

Description

@champaksworldcreate
  1. Write a program to check for odd and even numbers

  2. Write a program to find the max and min of 4 numbers

  3. Check for a leap year.

  4. Change 24 hour time to 12 hour time
    11:45 to 11:45 AM
    12:45 to 12:45 PM
    13:45 to 01:45 PM

  5. Solve a quadratic equation given the values a, b and c

  6. Enter marks in 3 subjects and check for pass or fail. Student is passed if he/she gets more than 40 in each subject. Check for division if passed. First division if percent>=60, Second if percent<60 and >=50, Third if percent <50.

  7. Convert rupees and paise into proper format.
    ₹ 10: 150 paise = ₹11.50 p

  8. Find the days in a month given the month number
    1-31
    2-28/29
    3-31
    4-30

  9. Find the day number given the week day name
    "Sun = 1
    Mon=2
    Sat=7

  10. Find the proper greeting based on time
    Midnight to less than 12 Good Morning
    12 to less than 5 Good Afternoon
    5 to a2 midnight Good Evening

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions