poj2871

简单题

View Code
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cstring>
using namespace std;

int main()
{
    //freopen("t.txt", "r", stdin);
    double n, m;
    scanf("%lf", &m);
    while (scanf("%lf", &n), n != 999)
    {
        printf("%.2f\n", n - m);
        m = n;
    }
    printf("End of Output\n");
    return 0;
}

 

posted @ 2013-04-09 14:17  金海峰  阅读(165)  评论(0编辑  收藏  举报