描述
Your chemistry lab instructor is a very enthusiastic graduate student who clearly has forgotten what their undergraduate Chemistry 101 lab experience was like. Your instructor has come up with the brilliant idea that you will monitor the temperature of your mixture every minute for the entire lab. You will then plot the rate of change for the entire duration of the lab.
Being a promising computer scientist, you know you can automate part of this procedure, so you are writing a program yo
#include<stdio.h>
int main()
{
int i, l;
double a[100001];
double b[100001];
l = 0;
while(scanf("%lf", &a[l]) && a[l] != 999)
{
l++;
}
for(i=1; a[i]!=999 && i<l; i++)
printf("%.2lf\n",a[i]-a[i-1]);
printf("End of Output\n");
return 0;
}