Pseudo-code coding: Exercise #19 → Edition
Statement #19: The program simulates the tossing of a 1 euro coin until the number of "Heads" equals the number of "Tails" + 3. The program displays the result of each throw and the number of throws required.
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 #19 → Execution
Statement #19: The program simulates the tossing of a 1 euro coin until the number of "Heads" equals the number of "Tails" + 3. The program displays the result of each throw and the number of throws required.
  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