Files
pplus-library/pseudo/programs/18-repeat-input.pseudo
T
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

11 lines
238 B
Plaintext

// REPEAT ... UNTIL with INPUT, validating until a legal value arrives.
// INPUT: 55
// INPUT: -3
// INPUT: 20
// EXPECT: 20
DECLARE Threshold : INTEGER
REPEAT
INPUT Threshold
UNTIL Threshold >= 0 AND Threshold <= 40
OUTPUT Threshold