Quick actions

cmd+k|ctrl+k

Navigation

Languages

GCF

Snippet info

Language

Cpp

Visibility

public

Author

n-piatygorskiy

Created

2021-05-04T08:20:54.604528Z

Updated

2021-05-04T08:21:06.848375Z

#include <iostream>
using namespace std;
int GCF(int a, int b){
    if (a % b == 0)
        return b;
    else return GCF(b, a % b);
}
int main() {
    printf("Greatest common factor of 9080, 44 is %d", GCF(9080, 44));
    return 0;
}
INFO