mirror of
https://github.com/heqin-zhu/algorithm.git
synced 2024-03-22 13:30:46 +08:00
11 lines
179 B
Plaintext
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.
|