A Simple Question of Chemistry
#include <fstream>
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
//ifstream cin("aaa.txt");
double a,b;
cin>>a;
//cout.precision(2);
while(cin>>b)
{
if(b==999)
{
//cout<<"End of Output"<<endl;
printf("End of Output\n");
break;
}
//cout<<fixed<<b-a<<endl;
printf("%.2f\n",(b-a));
a=b;
}
return 0;
}