Untitled

 avatar
unknown
plain_text
2 years ago
221 B
1
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...