Run ID:1908

提交时间:2023-12-02 15:24:08

# include<iostream> using namespace std; int main(){ int a,b,c=0,temp1=0,temp2=0; cin>>a>>b; if(b>a) temp1=a; a=b; b=temp1; temp1=a; temp2=b; while(a%b!=0){ c=a%b; a=b; b=c; } cout<<temp1*temp2/b; return 0; }