rygyfygy

//NWD ITERACYJNIE

Oct 30th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. //NWD ITEREACYJNIE
  2. { int a, b;
  3. cin >> a,b;
  4.  
  5. do
  6. {
  7. if(a>b) a=a-b;
  8. else b=b-a;
  9. }
  10. while(a!=b);}
  11. cout<<a
  12. }
Advertisement
Add Comment
Please, Sign In to add comment