Page 18 - Touchcode_C7_Flipbook
P. 18
Step 13: Drag the ‘splash’ block and drop it to the ‘on start’ block, below the ‘set Square to’ block.
Step 14: Change the value of a to ‘4’, in ‘set a to 0’ block, and click on ‘Start the simulator’ to see the
output:
Square of a number is: 16
Start the
simulator
Step 15: Now, change the value of ‘a’ to 1-10, to get the square of the number.
Well done, you have learned to find the square of the number!
Critical Thinking
Higher Order Thinking Skills (HOTS)
Write an algorithm and draw a flowchart to check if a string is a palindrome or not.
Teacher’s Corner
Discuss the concept of variable initialization with students.
16 Touchcode-VII

