algorithm-in-python/parser/PL0-compiler/test/txt/switch.txt
2019-03-15 16:37:02 +08:00

11 lines
179 B
Plaintext

func f(n)
print('squre of %d is %d',n,n*n);
var n=-2;
while n<3 do begin
switch n
case 0:f(n)
case 1,-1:f(n)
case 2,0-2:f(n) ;
n:=n+1;
end.