hi, I wright these commands in sage to have Euclidean Algorithm but i just get error.. what is the problem of these algorithm? am I wright it in a wrong way? by the way how can I create a file named euclid.sage and save below command in it?
Begin euclid.sage
r=a%b print (a,b,r) while r != 0: a=b; b=r r=a%b print (a,b,r)