Untitled

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

using namespace std; 

int UCLN(int a, int b){ 
	if(b == 0) return a; 
	return UCLN(b, a%b);
}  
int BCNN(int a, int b){ 
	return (a*b) / UCLN(a, b);
} 


int main(){ 
	int a, b; 
	cin >> a >> b; 
	cout << abs(BCNN(a, b));
return 0;
}