cout<<“Enter two numbers:”;
9 thoughts on “C++ Program to Find LCM and HCF of two numbers”
sorry dude, the hcf program returns the answer as 1… otherwise, nice program man!
@yashendra you don't know how to calculate hcf………………if there is no hcf between two numbers than the default hcf is 1………….thanks for visitng…………..
The hcf always comes to be 1
Program turns out to be too long. Check out 4 this one
Thank you sir….. It was indeed effective and short.
@AshwinKumar G V..I use the same code..for LCm and HCF its way less complicated and easier if you know loops rather than the if/else way…
i am a class 11th student . i chose pcm with computer science. can u all plz help me by providing me questions which are likely to come from flow of control. 19.9.15 is the last date bcoz on that day i have my half yearly of cs. i have the book c++ for class 11 by sumita arora. iwill check the same page on 18.9.15. plz help me out !!
The hcf part and the lcm part both are wrong.
the hcf and lcm programming are very nice and eacy to learn the program