Programming Example -- Guarded Command Scriptlets

Select a program scriptlet and then execute the scriptlet and examine how the program state changes. You may modify the scriptlets and try different program statements.

Enter Program:
Value of Program Statement:
Enter Program State:
Value of Program State:
Enter Program State:
Value of Program State: