A
A
andrey_levushkin2019-03-01 11:51:34
Pascal
andrey_levushkin, 2019-03-01 11:51:34

How to calculate the value of a 50-story fraction?

How can you calculate the value of y if it is represented by such a multi-level fraction:
5c78f292a254b639990981.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-03-01
@NeiroNx

Through the cycle.

x:=103
y:=103
while x>0 begin 
    x:= x - 2
    y:=1/y+x
end

The code is approximate, you need to check it yourself for accuracy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question