edited by
492 views
0 votes
0 votes
find the output for A(6)

A(n)

{

if (n<1) return 1;

else return A(n-2)+B(n-1)

}

B(n)

{

if(n<=1)

return 1;

else return B(n-1)+A(n-2)

}
edited by

1 Answer

Related questions

5 votes
5 votes
2 answers
1
saurabh0709 asked Aug 1, 2023
1,136 views
What will be the output of the following code? _______ #include <stdio.h int main(){ char val=250; int ans; ans= val+ !val + ~val + ++val; printf("%d", ans); return 0; }
0 votes
0 votes
1 answer
2
0 votes
0 votes
1 answer
3
0 votes
0 votes
1 answer
4
Akashh raj asked Jul 19, 2018
650 views
#include<stdio.h>#define funct(x) x*x+xint main(){ int x; x=36+funct(5)+funct(3); printf("%d",x); return 0;}