If you know,Plz send me dat..........
#include"iostream.h"
#include"conio.h"
void main()
{
int a,b,g;clrscr();
cin>>a>>b;
if(a<b) g=a;
else g=b;
for(;;g--)
if(a%g==0&&b%g==0)
{
cout<<"\nG.C.D:"<<g;
break;
}
cout<<"\nL.C.M:"<<a*b/g;
getch();
}
This post has been edited by arundavid.info: 29 June 2008 - 09:01 PM

New Topic/Question
Reply



MultiQuote





|