Untitled

Anonymous
plain_text
11/20/2022 1:10 PM
296 B
10
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...