Pseudo-code coding: Exercise #1 → Edition
Statement #1: The program must read numbers from the keyboard until it finds the value 0 (zero). The program must then indicate at which position this 0 appeared in the list of numbers read. A preliminary analysis is essential (in particular to identify the "trick(s)" 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 #1 → Execution
Statement #1: The program must read numbers from the keyboard until it finds the value 0 (zero). The program must then indicate at which position this 0 appeared in the list of numbers read. A preliminary analysis is essential (in particular to identify the "trick(s)" 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