Computer Science, asked by VinilM, 19 days ago

Write a c++ program to find the sum of the series 1+n+n^2+...n^m
(where n and m take user-specified values)

Answers

Answered by XxitzMichAditixX
1

The reactivity series is a series of metals, in order of reactivity from highest to lowest. It is used to determine the products of single displacement reactions, whereby metal A will replace another metal B in a solution if A is higher in the series. Activity series of some of the more common metals, listed in descending order of reactivity.

hope it helps ✅✅✅

#MichAditi✨✌️

Answered by MissIncredible34
4

Explanation:

Set variable “denominator” initially to 1.

Set variable “denominator” initially to 1.Set variable “sum” to be initially equal to 0.

Set variable “denominator” initially to 1.Set variable “sum” to be initially equal to 0.Add 1/denominator^denominator to the sum. That is, calculate sum += 1/denominator^denominator. I believe you need to use the pow() function for this.

Set variable “denominator” initially to 1.Set variable “sum” to be initially equal to 0.Add 1/denominator^denominator to the sum. That is, calculate sum += 1/denominator^denominator. I believe you need to use the pow() function for this.Repeat the above, until denominator = n.

Similar questions