Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
234 B
3
Indexable
Never
#include<stdio.h>  
#include<math.h> 

int UCLN(int a, int b) { 
		if(b == 0) return a; 
		return UCLN(b, a %b);
}  
int main(){  
	int a, b;
	scanf("%d", &a);  
	scanf("%d", &b);   
	printf("%d",  abs(UCLN(a, b)));
}