Pseudocode-Practice-Questions-Loops - For IGCSE CS
Pseudocode-Practice-Questions-Loops - For IGCSE CS
1. Write pseudocode that reads two numbers and multiplies them together and print out
their product.
2. Write pseudocode that tells a user that the number they entered is not a 5 or a 6.
3. Write pseudocode that performs the following: Ask a user to enter a number. If the
number is between 0 and 10, write the word blue. If the number is between 10 and 20,
write the word red. If the number is between 20 and 30, write the word green. If it is any
other number, write that it is not a correct color option.
4. Write pseudocode to print all multiples of 5 between 1 and 100 (including both 1 and
100).
5. Write pseudocode that will count all the even numbers up to a user defined stopping
point.
6. Write pseudocode that will perform the following.
a) Read in 5 separate numbers.
b) Calculate the average of the five numbers.
c) Find the smallest (minimum) and largest (maximum) of the five entered
numbers.
d) Write out the results found from steps b and c with a message describing what
they are
7. Write a pseudocode that reads in three numbers and writes them all in sorted order.
8. Write a pseudocode that will calculate a running sum. A user will enter numbers that will
be added to the sum and when a negative number is encountered, stop adding numbers
and write out the result.
Muhammad Ibrahim 9C
4-5-25