Page 62 - CloudGPT_C7_Flipbook
P. 62
Explanation:
The value of Number is 10, which is divisible by 2, so the 'if' block will get executed and
the output will be 'green' color.
Step 15: Change the 'Number' to '15', in 'set Number' block, and click on 'on start'
block, the output will be:
Explanation:
You have enter the Number 15, which is not divisible by 2, so the control goes to 'if-else'
block; and the number is divisible by 3, so the 'if-else' block will execute and the output
will be 'pink' color.
Coding fact
In 1971, Bob thomas created the first self replicating computer program. It was named
CREEPER.
Coding uiz 03
Critical Thinking
Give one-word answer to the following questions.
a. Which logical operator is used to check if either one of two
or more conditions is TRUE? ..................................
b. Which logical operator is used to reverse or negate a condition? ..................................
60 Premium Edition-VII

