ProgramsLogic building

Phase 1 - Level 5: Creative / Tricky Logical Scenarios

Solve creative and tricky logical problems using advanced conditional thinking.

10 programs · open one, then the next

Start with Point Location on Axes
  1. 01Point Location on AxesAdvancedTake coordinates (x, y) and check if the point lies on the X-axis, Y-axis, or at the origin.Open example →
  2. 02Check Pythagorean TripletAdvancedTake three numbers and check if they can form a Pythagorean triplet.Open example →
  3. 03Check Valid Calendar DateAdvancedTake day and month and check if it forms a valid calendar date (ignoring leap years).Open example →
  4. 04Clock Angle CalculationAdvancedTake time (hours and minutes) and print the smaller angle between the hour and minute hands.Open example →
  5. 05Check Arithmetic ProgressionAdvancedTake three numbers and check if they are in arithmetic progression.Open example →
  6. 06Check Geometric ProgressionAdvancedTake three numbers and check if they are in geometric progression.Open example →
  7. 07Digit Sum vs ProductAdvancedTake an integer (1-9999) and check if the sum of its digits is greater than the product of its digits.Open example →
  8. 08Compare Two DatesAdvancedTake two dates (day and month) and determine which one comes first.Open example →
  9. 09Determine CenturyAdvancedTake a year and print the corresponding century (e.g., "19th century").Open example →
  10. 10Absolute Difference CheckAdvancedTake two numbers and determine if their absolute difference is < 10.Open example →