Quantcast
Channel: Forum Pasja Informatyki - Najnowsze pytania
Viewing all articles
Browse latest Browse all 65225

Oblicz symbol Newtona rekurencyjnie

$
0
0

Mam problem z tym zadaniem 

tyle napisałem sam

    public int Newton(int n, int k)
    {
        if(k == 0 || k == n)
        {
          return 1;
        }
        else if(k < 0 && n < 0 && k < n)
        {
            return Newton(n--,k--) + Newton(n--,k);
        }
    }  

 


Viewing all articles
Browse latest Browse all 65225

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>