答案:
#include <iostream>
using namespace std;
int main()
{
int n1, n2, n3, max;
cin >> n1 >> n2 >> n3;
max = (n1 > n2 > n3) ? n1 : n2;
do
{
if (max % n1 == 0 && max % n2 == 0 && max % n3 == 0)
{
cout << max;
break;
}
else
++max;
} while (true);
return 0;
}