1.beginfor var i:=10 to 15 dobeginwrite(i);end;end. | 2.beginfor var i:=10 to 15 dobeginwrite(i, ' ; ’);end;end. | 3.beginfor var i:=10 to 15 dobeginwriteln(i);end;end. | 4.beginfor var i:=1 to 15 dobeginif i mod 3 =0 then write(i, ‘; ‘);end;end. |
5.var S: integer;beginS:=0;for var i:=5 to 10 dobeginS:=S+i;end;write (S);end. | 6.var S: integer;beginS:=0;for var i:=5 to 10 dobeginif i mod 2 =1 then S:=S+i;end;write (S);end. | 7.var k: integer;begink:=0;for var i:=5 to 20 dobeginif i mod 5 =0 then k:=k+1;end;write (k);end. |