Create a function to find GCD of a given number. Call this function in a program.

This post content:-
Algorithm
Flowchart
C code
Output
Pdf notes

Algorithm:-
Step 1:- start.
Step 2:- declare gcd function.
Step 3:- declare variable int num1,num2;
Step 4:- take input for two numbers.
Step 5:- call gcd function.
Step 6:- define gcd function.
Step 7:- END.

Flowchart:- 
C code:-
Output:-
Try it yourself:- online c compiler

Comments

Popular posts from this blog

Develop a program to print values of variable and their addresses.

Develop a c program to find the sum of all elements stored in a given array using a pointer.