Click here to Skip to main content
15,743,934 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
While n ≠ 0 do
r ← m mod n
m ← n // assign n to m
n ← r
return m

1 solution

You should do yourself your own homework. Please read the FAQ before posting again.
BTW that is a really simple task...
Share this answer
elgaabeb 13-Jan-12 18:26pm    
Sergey Alexandrovich Kryukov 13-Jan-12 18:53pm    
Enough said, a 5,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900