Pseudo-code coding: Exercise #20 → Edition
Statement #20: The program simultaneously rolls 3 dice, displaying their values until 421 is obtained. 421 will be obtained if the sum of the 3 dice = 7 and their product = 8.
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 #20 → Execution
Statement #20: The program simultaneously rolls 3 dice, displaying their values until 421 is obtained. 421 will be obtained if the sum of the 3 dice = 7 and their product = 8.
  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