What will be the output/error?(for input: 6, 9
#include int fg(int,int);
int main()
{
int n1,n2,g;
scanf("%d%d", &n1,&n2);
g=fg(n1,n2);
printf("%d",g); }
int fg(int x,int y)
{
while(x!=y) {
if(x>y)
return fg(x-y,y);
else
return fg(x,y-x);
}
return x; }
Options
A. 3
B. 6
C. 9
D. Error
Answers
Answered by
0
Answer:
brainlist please give me
Similar questions
Math,
23 hours ago
Geography,
23 hours ago
Science,
8 months ago
Social Sciences,
8 months ago
Hindi,
8 months ago