Why code return ( inf) at the first result of loop? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why code return ( inf) at the first result of loop?

https://code.sololearn.com/cNsY46OmM84g/?ref=app

7th Feb 2022, 6:52 AM
Mustafa Emad
Mustafa Emad - avatar
2 Answers
+ 1
Division by zero error. Is what I am seeing. Line 21 first pass is number /0.0
7th Feb 2022, 7:10 AM
William Owens
William Owens - avatar
0
William Owens thanks it disappeared I thought that inf refer to infinite
7th Feb 2022, 7:15 AM
Mustafa Emad
Mustafa Emad - avatar