Find the HCF and LCM of 2 nos using C Programming?

either a sloppy abbreviation for "numbers" (abbr. "no.")

or he's looking for the LCM and GCF of two noses.

on further review, i prefer the latter.

commented: Well it certainly "smells" like homework, so noses seems a likely bet ;) +30

Consider 2 numbers a and b and a > b.

function hcf
{
if (a%b)==0
return b
else
hcf(b,a%b)
}
lcm = (product of 2 numbers)/hcf