program AmoebaDivision;varX, time, count: Integer;beginWrite('Enter the number of amoebas: ');Readln(X);
time := 0;count := 1;
while count < X dobegintime := time + 3;count := count * 2;end;
Writeln('After ', time, ' hours there will be ', X, ' amoebas.');end.
program AmoebaDivision;
var
X, time, count: Integer;
begin
Write('Enter the number of amoebas: ');
Readln(X);
time := 0;
count := 1;
while count < X do
begin
time := time + 3;
count := count * 2;
end;
Writeln('After ', time, ' hours there will be ', X, ' amoebas.');
end.