write a program to input 2 numbers . check and print their LCM and HCF of two number.
Home
/
Computer Science
/
write a program to input 2 numbers . check and print their LCM and HCF of two number.
write a program to input 2 numbers . check and print their LCM and HCF of two number.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
Product of Two Numbers X*Y = HCF * LCM. You see there are 4 variables Viz. X, Y, HCF and LCM. When HCF and LCM is given, we have 2 variables (X and Y) and only one equation i. e. X * Y = HCF * LCM.