I need help

HI I am beginner in c++ ,I need a algorithme to program this suite:
S=1-X+2X2-3X3+4X4- . . . + (-1)n n Xn
Take it one step at a time, do just the first part. 1 - x. Keep adding steps. I'll give you a hint, recursion.
use a for loop
Last edited on
Topic archived. No new replies allowed.