Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main () {
- int a,b;
- const int gcd(const int a_, const int b_)
- cout<<"ievadiet 2 pozitivus skaitlus"<<endl;
- cin>>a>>b;
- }
- int a= a_;
- int b= b_;
- int h;
- while (b!=0)
- {
- h=a%b;
- a=b;
- b=h;
- }
- return a;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement