I have this h/w for exams and not working. I have install pycharm but i testing online. The h/w say x=15 and y=35. Exercise says: What will be the final values of the variables when this exercise is performed. If users give us from Pc x = 15 and y = 35?
My test but not work is : z= y//2 i tryed x=raw_input() and x=input() but no. i tryed elif and else
And this is my code :
x=input()
y=input()
if x<y:
z=x*2
else:
z=y /2
while z!=0:
z=x%y
print(z)
x=y
y=z
print(x)
Aucun commentaire:
Enregistrer un commentaire