Powered By Blogger

Monday, May 4, 2009

C Programming

#include
#include
int A[100];
int lcm(int n1,int n2);
int merge(int f,int l)
{
if(fn2)
{
small=n2;
large=n1;
}
while(large%small!=0)
{
int c=large%small;
large=small;
small=c;
}
return small;
}
void main()
{
clrscr(); int f=0,n,i;
printf("Enter the number:");
scanf("%d",&n);
for(i=0;i
{
scanf("%d",&A[i]);
}
int hg=merge(f,n-1);
printf("G C D=%d",hg);
getch();
}

0 comments:

About This Blog

This is an important blog about updated news about computer science and technology.

Blog Archive

Visitors

  © Free Blogger Templates Blogger Theme II by Ourblogtemplates.com 2008

Back to TOP