print an integer representing the total energy produced by the Nth second
Answers
Answered by
3
Explanation:
for N=1,an initial energy of 5 is generated.
For N=2, a consistent rate of 3 is added, so it becomes 8.
For N=3, again 3 is added to previous energy value, so it becomes 11.
The total energy produced after 3 second is 24(5+8+11)
Answered by
1
Answer:
24
Explanation:
N=1,
an initial energy of 5 is generated.
N=2,
a consistent rate of 3 is added, so it becomes 8.
N=3,
again 3 is added to previous energy value,
So it becomes 11.
The total energy produced after 3 second is 24 = 5+8+11
Hence print an integer representing the total energy produced by the Nth second is 24 .
Similar questions