Advertisement
hopingsteam

Untitled

Apr 4th, 2020
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. float evaluare(unsigned int n, float coef[], unsigned int x)
  2. {
  3.     if(n == 1)
  4.         return coef[1];
  5.     return coef[n] + x * evaluare(n-1, coef, x);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement