+ 1

Guess the output?like it for more such questions.

#include<iostream> #include<conio.h> using namespace std; int xyz(int no,int b) //recursive function { if (b==1) return 1; else return no*xyz(no,b-1); } void main() { cout<<"ans="<<xyz(5,2); } // compile this in your mind

17th Sep 2017, 6:04 AM
subham sahu
subham sahu - avatar
3 Respuestas
+ 3
25
17th Sep 2017, 6:08 AM
NizhamPihe
NizhamPihe - avatar
+ 13
Not spilling the beans... but you can submit that to the Quiz Factory, you know...
17th Sep 2017, 6:08 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
thanks for giving me this idea
17th Sep 2017, 6:16 AM
subham sahu
subham sahu - avatar