zju 1763

 

 

 

 

 

#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\n");
            break;
        }

          printf("%.2f\n",(b-a));

        a=b;
    }
    return 0;
}
View Code

 

 

#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\n");
            break;
        }

          printf("%.2f\n",(b-a));

        a=b;
    }
    return 0;
}
posted @ 2014-08-01 22:57  2014acm  阅读(111)  评论(0编辑  收藏  举报