Why is the Output of this code always 0? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why is the Output of this code always 0?

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

18th Oct 2019, 3:38 PM
Peter
4 Answers
+ 3
Thank you very much Miika now it works!
18th Oct 2019, 5:33 PM
Peter
+ 1
Okay last question 😆 The output is also 0 if i use 0.25 but if i use .25 it works but why?😅
18th Oct 2019, 5:50 PM
Peter
+ 1
Yes ive changed it an tried it with 0.25 but the output was 0🤔
18th Oct 2019, 6:06 PM
Peter
+ 1
Sry my fault no it worked thank you very much your endeavor!😄
18th Oct 2019, 6:18 PM
Peter