Python:
for i in range(11):
print(i, 2**i)
Pascal:
program hw;
var
i:integer;
function powq(a, b: integer):integer;
var i: integer;
begin
powq := 1;
for i := 1 to b do
powq := powq * a;
end;
for i := 0 to 10 do
writeln (i, ' ',powq(2, i));
end.
Python:
for i in range(11):
print(i, 2**i)
Pascal:
program hw;
var
i:integer;
function powq(a, b: integer):integer;
var i: integer;
begin
powq := 1;
for i := 1 to b do
powq := powq * a;
end;
begin
for i := 0 to 10 do
writeln (i, ' ',powq(2, i));
end.