Page 41 - CloudGPT_C6_Flipbook
P. 41
Step 14: Click on the 'on start' to run the program, OR on the 'Start the simulator' button
present on the left-hand side, to see the output.
Well done, you have created your addition of two numbers program!
Subject Enrichment
Coding Tip!
So far you have learnt about the blocks in Makecode. You can
also see the code in Python language by clicking on the Python
button on top of the window.
At a Glance
Variable is a packet which is used to store data. These packets can be named, referenced
and used to perform various mathematical operations.
Scope of a variable is the part of the code in which the declared variable can be used.
Every variable in a program is unique and you need to allocate the variable a unique name.
Data type identifies the type of data which the declared variable can hold.
Integer, Floating-point number, Character, String, Boolean are the common data types.
Operator is a symbol which operates on a value assigned to a variable. Example: +,-, *, \.
Operand is a value on which the operator performed operation.
Arithmetic operation combines two or more numeric expressions by using arithmetic
operators.
Variables Using Block Coding 39

