Guest User

Untitled

a guest
Oct 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public class nody{
  2.  
  3. static int change(int m,int n)
  4. {
  5.  
  6. if(m==1 | n==1)
  7. return 1;
  8.  
  9.  
  10. return change(m-1,n)+change(m,n-1);
  11. }
  12.  
  13. public static void main(String []args)
  14. {
  15. nody obj = new nody();
  16. System.out.println(obj.change(2,3));
  17.  
  18. }
  19. }
Add Comment
Please, Sign In to add comment