| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
49留念#include<iostream>
using namespace std;
int main()
{
float a,b;
cin >> b;
if (b == 999){
cout << "End of Output " << endl;
return 0;
}
while (cin >> a)
{
if (a == 999){
cout << "End of Output " << endl;
break;
}
printf("%.2lf\n",a-b);
b = a;
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator