http://ac.jobdu.com/problem.php?pid=1438
题目也是比较简单
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
int A,B,temp;
ifstream cin("data.txt");
while (cin >> A >> B)
{
temp = A > B ? A : B; //取A,B中的较大值
while (1)
{
if (temp % A == 0 && temp % B == 0)
break;
temp++;
}
cout << temp << endl;
}//end of while
system("pause");
return 0;
}