Euclidean algorithm
Hi,
I wrote these commands in sage to have Euclidean algorithm but I only get an error.. what is the problem of this algorithm?
r=a%b
print (a,b,r)
while r != 0:
a=b; b=r
r=a%b
print (a,b,r)
by the way how can I create a file named euclid.sage and save the above command in it?
I edit your message as the code was unreadable...
Thank you so much! I'm using it with my notebook ..