+ 1
How can I write this program in C++ language?
Write a program that takes the first term and the magnitude of the ratio of a geometric progression and then a) Calculate the sum M of the first sentence. Make sure that M is taken from the user b) Calculate the value of the sentence K. Pay attention that K is received from the user.
2 Answers
+ 1
Schindlabua The sentence means the same number of numbers
0
The geometric progression formula is `a * (1 - r^n) / (1 - r)`, where `a` is the initial term and `r` the ratio. I'm not sure what is meant by the word "sentence".