Computer Science, asked by Vegito6033, 1 day ago

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 yadavvikash7957
0

Answer:

brainlist please give me

Similar questions