2
I’m trying to solve this problem and when I execute the code, at a certain point it stops working correctly. I think it’s because of rounding, but when that part is removed, the code runs to infinity.
i = 0
j = 1
while(i != 2.2):
print('I=%s J=%s' % (i, j))
j = j + 1
if(j == (i + 4)):
i = round(i + 0.2, 1)
j = round(j - 2.8, 1)
there is some function that is better working with decimals?
It seems to me to work well. What problem are you referring to?
– Miguel