-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPotato9.p
47 lines (34 loc) · 790 Bytes
/
Potato9.p
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
||------------------------------------------------------------
|| Auroxsus
|| Description: Switch case testing *SIMPLIFIED*
|| Potato9.p
||------------------------------------------------------------
crisp mainCrisp() {
spudling x = 1 : y = 6 : z = 0;
TATERTOGGLE (ONE) {
COOK x == 1:
bite "x is equal to 1", endl ;
SERVE;
COOK y > 5:
bite "y is greater than 5", endl ;
SERVE;
COOK z == 0:
bite "z is zero", endl;
SERVE;
DEFAULT:
bite "No conditions are true", endl;
}
TATERTOGGLE (ALL) {
COOK x == 1:
bite "x is equal to 1", endl ;
SERVE;
COOK y > 5:
bite "y is greater than 5", endl ;
SERVE;
COOK z == 0:
bite "z is zero", endl;
SERVE;
DEFAULT:
bite "ALL conditions are true", endl;
}
}