Pseudo-code coding: Exercise #16 → Edition
Statement #16: The program simulates the throwing of a die and displays the value found on each throw until the values 4, 2 and 1 are found in order. It reports the positions of the first and last pair found (2 successive identical values).
Compose and insert the variables you need

DASHBOARD

SHOE

Elementary instructions

Constants

True
False

Mathematical operators

Boolean operators

AND
OR
NOT

Comparators and parentheses

(
)

Control structures

IF
THEN
ELSE
END IF
REPEAT
UNTIL
WHILE
DO
END WHILE
FOR
DO
END FOR



Pseudo-code coding: Exercise #16 → Execution
Statement #16: The program simulates the throwing of a die and displays the value found on each throw until the values 4, 2 and 1 are found in order. It reports the positions of the first and last pair found (2 successive identical values).
  Workspace →

Dashboard

Test result...

Test result...


© Rupert Meurice de Dormale 2024 (update of the 1995 version)

All rights reserved. Copying in whole or in part prohibited without written permission of the author.

adresse