C++最小公倍数を求める

371 ワード

**
c++最小公倍数を求める
**入力:1000以下の2つの正の整数を含む複数のテストデータを入力します.
≪出力|Output|emdw≫:各テスト・インスタンスに対して、この2つの数の最小公倍数が与えられ、各インスタンスは1行出力されます.
#include
using namespace std;

int main()
{
	int a,b;
	while(cin>>a>>b){
 int min, max;
 int r;
 max=a>b?a:b;
 min=a