Add Pascal learning files
This commit is contained in:
15
PascalABCnet/while/While_task7.pas
Normal file
15
PascalABCnet/while/While_task7.pas
Normal file
@@ -0,0 +1,15 @@
|
||||
Program While_Task7;
|
||||
const n=10;
|
||||
var a:integer;
|
||||
begin
|
||||
While a<> n do
|
||||
Begin
|
||||
writeln('hello');
|
||||
inc(a);
|
||||
end;
|
||||
a:=0;
|
||||
repeat
|
||||
writeln('hello');
|
||||
inc(a);
|
||||
until a=n;
|
||||
end.
|
||||
Reference in New Issue
Block a user