Ask your own question, for FREE!
Computer Science 19 Online
OpenStudy (adeelasifmehmod):

Print the sum of power series(1+x+x^2+x^3+......+x^n) in C++ without using cmath library.

OpenStudy (anonymous):

i hope you expect to define n. otherwise it will not be able to finish

OpenStudy (anonymous):

you could use recursion 1 define your base case. 2 then define your recursive statement use conditional statements

OpenStudy (rsmith6559):

You can write a small function to substitute for math.pow() and the exponent is a for loop from 0...n .

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!