hey guys !
i am having a problem to write C++ program plz help me to solve it.
Write a program that sums the first n items in a geometric series using a while loop.
User will input the n. use the following formula or use your previous knowledge.
a+ar+ar2 +ar3 +…, with r=1/2 and a=1/2