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
Post a Comment