Κεφάλαιo 11

Page 1 of 9

Question 1

Να χρησιμοποιήσετε τις εντολές επανάληψης repeat until , ώστε το
αποτέλεσμα να είναι η εκτύπωση των αριθμών 1 έως και 10.

arithmos:=1;
while arithmos < 11 do
begin
arithmos: =arithmos + 1;
write(arithmos:5);
end;
 

program erwtisi;
var
arithmos:integer;
begin
arithmos:=0;
repeat
   arithmos:=arithmos+1;

    write (arithmos:5);
until arithmos>10
end.

 

program erwtisi;
var
arithmos:integer;
begin
arithmos:=1;
repeat
   write (arithmos:5);
   arithmos:=arithmos+1;
until arithmos>10
end.