Untitled
raw download clone
TEXT
views 29
,
size 332 b
#include<iostream>
using namespace std;
int cmmdc(int a , int b)
{
    if(b == 0)
        return a;
    return cmmdc(b , a % b);
}
int main()
{
    int a , b;
    cin >> a >> b;
    int aux = cmmdc(a , b);
    if(aux == 1)
    {
        cout << "NUMERE PRIME INTRE ELE.";
    }
    else
        cout << aux;

}
close fullscreen
Login or Register to edit or fork this paste. It's free.