What will be the output when fn(12,30) is invoked? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What will be the output when fn(12,30) is invoked?

int fn(int a,int b) { while(a!=b) a-=b; else b-=a; } return a; }

18th Dec 2019, 4:59 AM
Naman Pandey
Naman Pandey - avatar
1 Answer
+ 1
Error
18th Dec 2019, 8:03 AM
Avinesh
Avinesh - avatar