:
#include <iostream>
#include <math. h>
using namespace std;
int main()
{
int n=0;
int a,b;
cout << "Введите a b" << endl;
cin >> a;
cin >> b;
bool bl ;
bl = true;
while ( bl==true){
n++;
if ((n%a== 0) &&(n%b == 0))
bl = false;
}
cout << "НОК = "<< n << endl;
system("pause");
return 0;
}