var n,m:integer;
begin
write('n=');
readln(n);
m:=1;
while m<n do
write(m,' ');
m:=m*2;
end;
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var n,m:integer;
begin
write('n=');
readln(n);
m:=1;
while m<n do
begin
write(m,' ');
m:=m*2;
end;
end.