The Online Programming Solutions is cares for the students as well as professionals who aspire to prepare and develop technical skills in web technologies. It has been created to provide quality online education to the people.....
For More Details :-->> Click On The Below Link
www.onlineprogrammingsolutions.com
:)
ReplyDeleteC Graphics Examples Link --->>
ReplyDeletehttp://www.onlineprogrammingsolutions.com/CExamples/graphics.aspx
C++ Graphics Examples Link --->>>
ReplyDeletehttp://www.onlineprogrammingsolutions.com/CPlusExamples/graphics.aspx
GUI Examples Link--->>>
ReplyDeletehttp://www.onlineprogrammingsolutions.com/CSharpExamples/gui.aspx
Latest Update In www.onlineprogrammingsolutions.com
ReplyDeleteI have added C++ With Graphics Tutorial With Examples...!!
Here is d Link...
http://www.onlineprogrammingsolutions.com/C-Plus/graphics.aspx
Data Structure And Algorithm is d new topic in our website
ReplyDeletevisit dere...for more info
http://www.onlineprogrammingsolutions.com/DataStructure/introduction.aspx
:)
ReplyDeleteC program to find LCM and HCF of two numbers
ReplyDelete#include
#include
void main()
{
clrscr();
int a,b,hcf,lcm,max,min,r;
printf("Enter two numbers:");
scanf("%d%d",&a,&b);
if(a>b)
{
max=a;
min=b;
}
else
if(b>a)
{
max=b;
min=a;
}
if(a==b)
hcf=a;
else
{
do
{
r=max%min;
max=min;
min=r;
}while(r!=0);
hcf=max;
}
lcm=(a*b)/hcf;
printf("\nLCM=%d\nHCF=%d",lcm,hcf);
getch();
}
...........................................................................................
For More Programs Visit Dere...
http://www.onlineprogrammingsolutions.com/CExamples/Basic.aspx