/* Running examples: $ ./a.out Enter coefficients: 1 2 3 p(x) = 1+2*x+3*x^2 Enter values of x to evaluate: 1 2 3 p(1) = 6 p(2) = 17 p(3) = 34 $ ./a.out Enter coefficients: 1 0 1 p(x) = 1+0*x+1*x^2 Enter values of x to evaluate: 0 1 2 3 4 p(0) = 1 p(1) = 2 p(2) = 5 p(3) = 10 p(4) = 17 $ ./a.out Enter coefficients: 1 1 1 1 1 1 1 p(x) = 1+1*x+1*x^2+1*x^3+1*x^4+1*x^5+1*x^6 Enter values of x to evaluate: 0 1 2 p(0) = 1 p(1) = 7 p(2) = 127 $ ./a.out Enter coefficients: 10 p(x) = 10 Enter values of x to evaluate: 0 1 2 3 4 5 6 7 8 9 p(0) = 10 p(1) = 10 p(2) = 10 p(3) = 10 p(4) = 10 p(5) = 10 p(6) = 10 p(7) = 10 p(8) = 10 p(9) = 10 */