A
A
Alexander Keffir2020-04-18 15:21:26
Pascal
Alexander Keffir, 2020-04-18 15:21:26

How to fix errors in Pascal loop-before code?

Program Zadcha1;
Var i:integer;
Var n, i:real;
begin
readln (n) ;
I:=0;
repeat
           begin
n:=n/2;
I:=i+1;
end
until (n<1) 
write on ('Можем поделить ', i-1, ' раз') ;
end.


The task itself
1. Enter a number from the keyboard. Calculate how many times it can be divided by 2 until it is < 1.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question