using namespace std;
int main()
{
int num1,num2,hcf=0,cont=0,lcm;
do{
cout<<"Enter 2 number to find H.C.F OR G.C.D"<
for(int i=1;i<=num1 && i<=num2;i++)
{
if((num1%i == 0)&&(num2%i==0))
{
hcf=i;
}
}
cout<<"HCF ="<
lcm=(num1*num2)/hcf;
cout<<"L.C.M = "<
cout<<"want to continue"<
}while(cont>0);
return 0;
}
Ring ZhongPosted Dec 13, 2013, 3:23 AM
here is the converter online, enable the conversion between c++, c#, java, vb, ruby, python, boo. Note: if you don't register as a member, conversion output is limited to 512 chars.
https://varycode.com/converter.html
Hope it helps.
Abhay ShankerPosted Dec 11, 2013, 9:59 PM
http://sourceforge.net/projects/cxx2cs/