Untitled
unknown
plain_text
3 years ago
221 B
4
Indexable
#include <iostream>
#include <string>
using namespace std;
int main(){
int a, b, nok;
nok = 1.0;
cin >> a >> b;
while (1) {
if (nok%a == 0 && nok%b == 0){
cout << nok;
break;
}
nok += 1;
}
}Editor is loading...