Prog for g.c.d. of 2 integers

Robert Klemme wrote:

“Michael Campbell” michael_s_campbell@yahoo.com schrieb im
Newsbeitrag
news:20031211160102.24728.qmail@web12408.mail.yahoo.com

Robert Klemme wrote:

begin
a,b = b,a % b
end while b != 0

Not trying to “golf”, but is the begin/end necessary here?

No. It’s a relict from the evoltion process. But you’re right

a,b = b,a % b while b != 0

looks much better. :-))

Thanks

I was just wondering if there was something subtle about the
begin/end that I wasn’t grokking… Thanks. =)

···

Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/