home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
pascal
/
pascalw.exe
/
CASE.PAS
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1990-08-07
|
267 b
|
18 lines
program cases(input, output);
var
i : integer;
begin
repeat
write( 'Enter an integer, 0 to end : ' );
readln(i);
case i of
0:;
1:i:=i*2;
2:i:=i*3;
3:i:=i*4;
end;
writeln(i);
until i = 0;
end.