Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~923 People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for sumanth232

#include<stdio.h> int ways(int n,int m) { if(n=0) return m; if(m=0) return n; else ways(n,m)=ways(n-1,m)+ways(n,m-1); //there is an error here.pls explain// return ways(n,m); } int main() { int a,b; printf("give a and b"); scanf("%d %d",&a,&b); ways(a,b); printf("the no of ways from (%d,%d) to (0,0) are %d",a,b,ways(a,b)); return 0; } what is …

Member Avatar for MandrewP
0
923