My Blog
Articles related to programming, computer science, technology and research.

C program to find GCD of given two integers using recursive and non-recursive functions

06/05/2016 Categories: Functions. Comments Off on C program to find GCD of given two integers using recursive and non-recursive functions

  /* * C program to find GCD of given two integers using recursive and non-recursive functions * Author: P.S.SuryaTeja */ #include <stdio.h> #include <conio.h> #include <math.h> #include <stdlib.h> int gcd(int num1, int num2) { int i, hcf; if(num1 < num2) { for(i = 1; i <= num1; i++) { if((num1 % i == 0) […]

Read the rest of this entry »

C program to generate fibonacci sequence using recursive and non-recursive functions

06/05/2016 Categories: Functions. Comments Off on C program to generate fibonacci sequence using recursive and non-recursive functions

 

Input and output for the above program is as follows:

 

Read the rest of this entry »

C program to find the factorial of a given number using recursive and non-recursive functions

06/05/2016 Categories: Functions. Comments Off on C program to find the factorial of a given number using recursive and non-recursive functions

 

Input and output for the above program is as follows:

 

Read the rest of this entry »

C program to demonstrate call by value and call by reference

06/05/2016 Categories: Functions. Comments Off on C program to demonstrate call by value and call by reference

 

Input and output for the above program is as follows:

 

Read the rest of this entry »
Scroll Up