Page 80 - TechPluse_C4_Flipbook
P. 80
User input Output
The final output of the program will be similar to the above image.
We can also make the sprite speak the answer by joining text and string.
For this, we need to use this code for the sprite Abby. The output of the code will be similar to
this depending upon the input of the user.
Output
LOOPS
All the programs or projects developed till now ran only once. If you want to run a set of
statements more than once, you will either run the code again or write the script again. In
Scratch, we can save our time and effort by repeating the code without writing the program
again or writing the script again. The automatic running of a set of instructions more than once
is called looping. The blocks for looping are given in Control category.
The Repeat block is used to run a set of instructions for a specified number of
times.
The Repeat Until block is used to run a set of instructions till a condition is
satisfied.
78 Premium Edition-IV

