Implement the while loop
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
proc main() {
|
||||
var x: int;
|
||||
|
||||
x := 0;
|
||||
while (x < 2) {
|
||||
x := x + 1;
|
||||
}
|
||||
printi(x);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
proc print2(a: int) {
|
||||
printi(a);
|
||||
}
|
||||
|
||||
proc main() {
|
||||
print2(14);
|
||||
}
|
||||
Reference in New Issue
Block a user