#include <iostream> #include <cstdio> using namespace std; int main(int argc, char *argv[]) { double a,b; cin>>a; while (cin>>b) { if (b==999) { printf("End of Output "); break; } printf("%.2f ",(b-a)); a=b; } return 0; }
#include <iostream> #include <cstdio> using namespace std; int main(int argc, char *argv[]) { double a,b; cin>>a; while (cin>>b) { if (b==999) { printf("End of Output "); break; } printf("%.2f ",(b-a)); a=b; } return 0; }