1.

In a science research lab, the combination of two nuclear chemicals produces minimal energy as X. This energy X changes at a constant rate Every second. The scientist wishes to calculate the total energy produced the reaction is allowed to occur for N seconds Write an algorithm to find the total energy produced

Answer»

Explanation:

Input

The input consists of three SPACE separated integers intialEnergyx), rate and time representing the initial energy produced upon combining the nuclear CHEMICALS, the consistent rate of CHANGE; and the SECOND for which the scientist wishes to calculate the

total energy produced, respectively.

Output

Print an integer representing produced by the NTH second



Discussion

No Comment Found