Got Homework?
Connect with other students for help. It's a free community.
Here's the question you clicked on:
← 55 members online
 0 viewing

This Question is Closed

Chris2332 Group TitleBest ResponseYou've already chosen the best response.0
Do you want to write one from scratch or would you be happy with something like that? http://live.boost.org/doc/libs/1_34_1/doc/html/boost_math/gcd_lcm.html#boost_math.gcd_lcm.lcm_function_object
 one year ago

Chris2332 Group TitleBest ResponseYou've already chosen the best response.0
Could try this as well: for(n=a;n%b != 0;n+=a); return n;
 one year ago

Yahoo! Group TitleBest ResponseYou've already chosen the best response.0
@shubhamsrg
 one year ago

shubhamsrg Group TitleBest ResponseYou've already chosen the best response.0
cin>>a>>b; find out which one is greater by any legit method. lets say b is greater.. now ,, for(int i=1 ; i>= b ; i++) if( i% b ==0) if(i%a ==0) LCM = i;
 one year ago
See more questions >>>
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.