1) program znanija;
var
i,a: integer;
begin
a:=11;
for i:=1 to 10 do
a := a + 2;
writeln(a);
end;
end.
2) program znanija;
i,a,b: integer;
a := sqr(i);
b := i*i*i;
writeln(i, ' ', a, ' ', b);
Номер 1
Program n_1;
var i:integer;
for i:=11 to 31 do if i mod 2 = 1 then write(i, ' ');
Номер 2
for i:=1 to 10 do writeln(i, ' ', i*i, ' ', i*i*i);
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
1) program znanija;
var
i,a: integer;
begin
a:=11;
for i:=1 to 10 do
begin
a := a + 2;
writeln(a);
end;
end.
2) program znanija;
var
i,a,b: integer;
begin
for i:=1 to 10 do
begin
a := sqr(i);
b := i*i*i;
writeln(i, ' ', a, ' ', b);
end;
end.
Номер 1
Program n_1;
var i:integer;
begin
for i:=11 to 31 do if i mod 2 = 1 then write(i, ' ');
end.
Номер 2
Program n_1;
var i:integer;
begin
for i:=1 to 10 do writeln(i, ' ', i*i, ' ', i*i*i);
end.