Vanilla 1.1.5a jest produktem Lussumo. Więcej informacji: Dokumentacja, Forum.
Program Pierwszy;
Const Licznik : Integer = 0;
Var Liczba : Integer;
Begin
Writeln('Podanie liczby zero konczy program');
repeat
Write('Podaj liczbe:');
Readln(Liczba);
if Liczba in [5..20] then Inc(Licznik)
until Liczba=0;
Writeln('Ilosc liczb z zakresu od 5 do 20 : ',Licznik);
Readln
End.
2.
Program Drugi;
Var Liczba,i : Integer;
Begin
Write('Podaj liczbe: '); Readln(Liczba);
repeat
if Liczba>0 then
begin
Write('*');
Inc(i)
end;
until i=Liczba;
Writeln;
i:=0;
while i<Liczba do
begin
Write('#');
Inc(i)
end;
Writeln;
for i:=1 to Liczba do Write('$');
Readln
End.
3.
Program Trzeci;
Const x1 : Integer = 10;
y1 : Integer = 10;
x2 : Integer = 100;
y2 : Integer = 100;
Var x,y : Integer;
Begin
Write('Podaj x :'); Readln(x);
Write('Podaj y :'); Readln(y);
if (x in [x1..x2]) and (y in [y1..y2]) then Writeln('Punkt lezy w obrebie prostokata')
else Writeln('Punkt NIE lezy w obrebie prostokata');
Readln
End.
: )
Pozdrawiam Stefan Pruszkiewicz
Od 1 do 5 z 5