You are viewing a single comment's thread. Return to all comments →
int div = 1; int ans = 1; if(l==b){ return ans; }else { for(int i= 1 ; i<=l;i++ ){ if((l%i==0) && (b%i==0)){ div = i; } } ans = (l*b)/(div*div); } return ans;
Seems like cookies are disabled on this browser, please enable them to open this website
Restaurant
You are viewing a single comment's thread. Return to all comments →