Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include<iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main () {
  6.  
  7. const int gcd(const int a_, const int b_)
  8. {
  9. int a= a_;
  10. int b= b_;
  11. int h;
  12.  
  13. while (b!=0)
  14. {
  15. h=a%b;
  16. a=b;
  17. b=h;
  18. }
  19.  
  20. return a;
  21. }
  22.  
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement