#include<stdio.h> void gcd(int x, int y); int main() { int m,n; scanf("%d %d",&m,&n); gcd(m,n); return 0; } void gcd(int a, int b) { if (b==0) printf("%d",a); else gcd(b,a%b); }
#include<stdio.h> void gcd(int x, int y); int main() { int m,n; scanf("%d %d",&m,&n); gcd(m,n); return 0; } void gcd(int a, int b) { if (b==0) printf("%d",a); else gcd(b,a%b); }