Page 35 - CloudGPT_C7_Flipbook
P. 35
Modulus AND %= Takes modulus of two b % = a (b% = 10) is
assignment operator operands and assigns the equivalent to b = b % a
result to the left operand (b = 30 % 10) (b=0)
Coding uiz 03
Subject Enrichment
Give one word answer to the following questions:
a. Add AND assignment operator is denoted by: .....................................
b. Divide AND assignment operator is denoted by: .....................................
Coding Task 01 Critical Thinking
To create variable 'a' in MakeCode Arcade and assign it a value of 10
To perform the task, follow these steps:
Step 1: Visit the link: https://arcade.makecode.com/, the following screen appears:
Step 2: Click on 'New Project', , write the name of your project 'Create a variable', and
then click on 'Create'.
Create a variable
Step 3: The following screen appears:
Step 4: Click on 'Variables', select 'Make a Variable', write the name of the variable as 'a', then
click on 'OK'. Variable 'a' will appear in 'Make a Variable…'.
Variables Using Block Coding 33

