ProgramsLogic building

Phase 1 - Level 4: Logical Operators & Compound Statements

Master logical operators and compound conditional statements.

10 programs · open one, then the next

Start with Check Letter, Digit, or Neither
  1. 01Check Letter, Digit, or NeitherIntermediateTake a character and check if it is a letter, a digit, or neither.Open example →
  2. 02FizzBuzz ProblemIntermediateTake a number and print "Fizz" if divisible by 3, "Buzz" if divisible by 5, and "FizzBuzz" if divisible by both.Open example →
  3. 03Find Median ValueIntermediateTake three numbers and print the median value (neither maximum nor minimum).Open example →
  4. 04AM or PM CheckIntermediateTake 24-hour time (hours and minutes) and print whether it is AM or PM.Open example →
  5. 05Tax Eligibility CheckIntermediateTake income and age, and check if eligible for tax (age > 18 and income > 5 L).Open example →
  6. 06Positive Numbers Sum CheckIntermediateTake two numbers and check if both are positive and their sum is less than 100.Open example →
  7. 07Print Digit WordIntermediateTake a single digit (0-9) and print its word form ("Zero" to "Nine").Open example →
  8. 08Weekday or WeekendIntermediateTake a weekday number (1-7) and determine if it is a weekday or weekend.Open example →
  9. 09Electricity Bill CalculationIntermediateTake electricity units consumed and calculate the bill as per slabs (using if-else).Open example →
  10. 10Basic Password ValidationIntermediateTake a password string and check basic rules (length >= 8 and contains at least one digit).Open example →