AD (728x90)

GoogleOnline Exam Test Seminar Sparkz IncEasy Link Exchange

Saturday 31 May 2014

Write C programs that use both recursive and non-recursive functions. To find the GCD (greatest common divisor) of two given integers.

Seminars and Jobs information
Share it Please
/* Write C programs that use both recursive and non-recursive functions
  To find the GCD (greatest common divisor) of two given integers.*/

#include<stdio.h>
#include<conio.h>
#include<math.h>

unsigned int GcdRecursive(unsigned m, unsigned n);
unsigned int GcdNonRecursive(unsigned p,unsigned q);

int main(void)
{
 int a,b,iGcd;
 clrscr();

 printf("Enter the two numbers whose GCD is to be found: ");
 scanf("%d%d",&a,&b);
For more Click

Written by

Java Basic Point blog is created for the MCA,M.Tech,B.Tech and Graduate students.So visit and get the benifits from this blog.

0 comments:

Post a Comment

© 2013 Learning Java. All rights resevered. Designed by Templateism