In a science research lab, the combination of two nuclear chemicals produces an initial energy as X.This energy X changes at a consistent rate Revery second. The scientists wishes to calculate theenergy produced at the Nth second .Write an algorithm to find the energy produced at the Nth second.InputThe input consists of three space-separated integers- IntialEnergyX), rate and time representing theinitial energy produced upon combining the nuclear chemicals; the consistent rate of change; and theNth second for which the scientist wishes to calculate the total energy produced, respectively.OutputPrint an integer representing the energy produced at the Nth secondConstraints106 intialEnery rate : 1060 me 100
Answers
Answer:
science research lab the combination of two unique chemicals products and Indian jewellery energy as X energy X changes it consists read every second the scientists wishes to calculate 3 in energy produced at the UN and 9th second write an algorithm to find the energy produced that and the second input the input customers of 83 space separated integers initially energy accelerate and time representing initially energy produced a pond combining the nuclear chemicals the consists rate of change and ENT s for which the scientist to wishes to calculate the total energy product produced respectively output print an integer respecting the energy produced at the end the second consists of one not 6 initially energy rate equal to 960 mein hundred
C Program
#include <stdio.h>
int main()
{
int e,r,n,t;
scanf("%d %d %d", &e,&r,&n);
int i;
for(i=1;i<=n;i++)
{
if(i==1)
t=e;
else
t=t*r;
printf("%d ",t);
}
}
- If the reaction is allowed to run for N seconds, print N space-separated integers that represent the energy created every second.
- InitialEnergy, rate, and time are the three integers that make up the input. indicating, respectively, the initial energy created by the nuclear components' combination (A), the constant rate of change (R), and the number of seconds the reaction is permitted to occur (N).
#SPJ2