Pls help me in finding hcf and lcm of 2 nos
sailee
0
Newbie Poster
Recommended Answers
Jump to PostPls help me in finding hcf and lcm of 2 nos
What the hell does that mean :angry:
Jump to Post>Pls help me in finding hcf and lcm of 2 nos
It's easy. All you do is grab the igm, do a qp on the xt half of the pgid and roll everything up into a qt7-qualified czsm. Hope that helps! :)
Jump to Post> Pls help me in finding hcf and lcm of 2 nos
Have you tried looking down the back of the sofa?
That's where I usually find things.
Jump to PostOkay here is the pseudo code for hcf, credit to Euclid.
gcd(m,n) r<-(m MOD n); if r=0 then { return n } else { m<-n n<-r gcd(m,n) }
Sorry if my pseudocode is not as per standard.
All 15 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Narue
5,707
Bad Cop
Team Colleague
hammerhead
commented:
Helped me lol
+2
Salem
5,138
Posting Sage
hammerhead
19
Posting Whiz in Training
mitrmkar
1,056
Posting Virtuoso
hammerhead
19
Posting Whiz in Training
hammerhead
19
Posting Whiz in Training
mitrmkar
1,056
Posting Virtuoso
bugmenot
25
Posting Whiz in Training
sailee
0
Newbie Poster
sailee
0
Newbie Poster
Prabakar
77
Posting Whiz
Radical Edward
301
Posting Pro
jephthah
1,888
Posting Maven
hk<3ob1993
-5
Newbie Poster
Ancient Dragon
commented:
Two years too late
-5
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.