Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int binomals(int n, int m){
  4. if((m==0) || (m==n)) return 1;
  5. else return binomals(n-1,m-1) + binomals(n-1,m);
  6. }
  7. int main(int n, int m){
  8. cout<<"Vuvedete n: " ;
  9. cin>>n;
  10. cout<<"Vuvedete m: (<n) " ;
  11. cin>>m;
  12. cout<<binomals(n,m);
  13. system("pause");
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement