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); } }
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); } }