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

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
 
Comments
elgaabeb 13-Jan-12 18:26pm    
+5'd
Sergey Alexandrovich Kryukov 13-Jan-12 18:53pm    
Enough said, a 5,
--SA

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