Page 86 - Touchcode_C8_Flipbook
P. 86
Step 7: From ‘Variables’ select ‘Set Volume to 0’,
and drop it to function ‘VolumeofCuboid’.
Step 8: From ‘Math’ select two ‘Multiplication’
operators.
Step 9: Combine the ‘Multiplication’ operator as shown:
Step 10: Drag the ‘multiplication’ operator and drop it in the ‘0’ of ‘set Volume to 0’ block.
Step 11: From the ‘Player’ select two ‘say’ blocks.
Step 12: Drag the ‘say’ block, and drop them to function block, below the ‘set volume’ block.
Step 13: In one ‘say block’ write ‘Volume of Cuboid
is:’, and in other ‘say’ block, drop the
variable ‘Volume’ from the ‘Variables’.
Step 14: From ‘Function’, drag and drop the
parameters ‘L’, ‘B’, ‘H’, to the ‘0x0x0’ of ‘set
Volume to’ block.
84 Touchcode-VIII

