Page 30 - Touchcode_C8_Flipbook
P. 30
Well done, you have learnt to check divisibility of a number by 7 or 9 or by
both 7 and 9!
You can view the code of the above program in ‘Python’ by selecting ‘Python’ as an Editor.
Coding Task 02
To check two numbers and display a message
saying if one is greater than the other, or they are same.
In this task, you will learn to create the program which checks if a number is greater than
or equal to or less than the other number.
To perform the task, follow these steps:
Step 1: Visit the link: https://arcade.makecode.com/. Create a
project ‘Comparison’, and click on ‘Create’.
Step 2: Create two variables ‘num1’ and ‘num2’.
Step 3: Select ‘set num1 to 0’ and ‘set num2 to 0’ block and drop it
to the ‘on start’ block.
28 Touchcode-VIII

