Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int binomals(int n, int m){
- if((m==0) || (m==n)) return 1;
- else return binomals(n-1,m-1) + binomals(n-1,m);
- }
- int main(int n, int m){
- cout<<"Vuvedete n: " ;
- cin>>n;
- cout<<"Vuvedete m: (<n) " ;
- cin>>m;
- cout<<binomals(n,m);
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement