/Here i wrote code for find LCM of two numbers but i don't know why it is not work for 9-10 digit numbers. like if i give input as 245 and 922222222 then it is not work and don't show the output./
//code is given below
#include<iostream>
using namespace std;
long long product;
long long lcm(long long x,long long y){
    if(x>y)
        product=x;
    else
        product=y;
    while(1){
        if(product%x==0 && product%y==0){
            break;
        }
        product++;
    }
    return product;
}
int main(){
    cout<<lcm(245,922222222);
    return 0;
}
 
     
    