Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int m;
- cin >> m;
- int n;
- cin >> n;
- int nzs = 0;
- for(int i = m; i <= m*n; i++){
- if(i%n==0 and i%m==0){
- cout << i <<endl;
- return 0;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment