+ 1

Why the last number of the serie become a negative integer?

Supostly the output's numbers have to be always positive. I don't understand how a sum between 2 positive numbers is equal to a negative number. Plz help 🙃 https://code.sololearn.com/ck6h6x1kF9kQ/?ref=app

21st Apr 2018, 2:15 PM
Henrique Carrão
Henrique Carrão - avatar
5 Réponses
26th May 2018, 4:22 AM
AliR૯za
AliR૯za - avatar
0
Ok thank you. How I do that?
21st Apr 2018, 2:23 PM
Henrique Carrão
Henrique Carrão - avatar
0
Thanks
21st Apr 2018, 2:31 PM
Henrique Carrão
Henrique Carrão - avatar
0
didn't worked
21st Apr 2018, 2:34 PM
Henrique Carrão
Henrique Carrão - avatar
0
I used what you wrote and the output is the same
21st Apr 2018, 2:42 PM
Henrique Carrão
Henrique Carrão - avatar