Computer Science, asked by jb04018, 3 months ago

In a science

research lab, the combination d two nuclear chemicals produces inmal energy as X. This energy X changes at a constant rate Revery 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

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.​

Answers

Answered by arman728
0

Answer:

In a science

research lab, the combination d two nuclear chemicals produces inmal energy as X. This energy X changes at a constant rate Revery 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

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.

The runs scored by a cricket team in the first and second innings of N test cricket matches are passed as input. The program must print the average of first and second innings (with precision upto two In a science

research lab, the combination d two nuclear chemicals produces inmal energy as X. This energy X changes at a constant rate Revery 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

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. places).

Input Format: The first line denotes the value of N. Next N lines will contain the first and second innings score separated by a space.

Output Format: The first line contains the average of first innings score. The second line contains the average of second innings score. Boundary Conditions: 2 <= N <= 20 The value of the runs will be from 0 to 1000.

Example Input/Output 1:

Input:

3

250 200

450 300

200 250

Output:

300.00

250.00

Similar questions