Pseudo-code coding: Exercise #18 → Edition
Statement #18: The program simulates the throwing of a die until it finds, in order or out of order, two numbers previously requested by the user (robustness!). The program reports the number of pairs of 6 encountered.
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 #18 → Execution
Statement #18: The program simulates the throwing of a die until it finds, in order or out of order, two numbers previously requested by the user (robustness!). The program reports the number of pairs of 6 encountered.
  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