Solve Remainder Problem with nested conditions in Makecode || Coding || Block Coding || Python

Опубликовано: 23 Март 2026
на канале: Technical Skills
763
9

THE REMAINDER PROBLEM
Chapter: Control with Conditionals
Problem Statement: Using nested conditional statements find if a number is divisible
by 2 or 3 and then change the background color in MakeCode editor.
These are the steps which needs to be followed:
• If a number is divisible by both 2 and 3 then set the background color to red
• If a number is divisible by 2 but not 3 then set the background color to orange
Learning Outcome:
• You will learn how to use nested conditional statements in block coding.
• You will learn how to use variables
• You will also learn on how to use logical operators