| ||||||||||
| 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 | |||||||||
大家帮忙看看啊 我到底错在哪??急~~#include<iostream>
using namespace std;
int main()
{long double a1,a2;
cin>>a1;
while(1)
{cin>>a2;
if(a2==999)
break;
else
{if((a2-a1)!=0)
printf("%.2f\n",a2-a1);
}
a1=a2;
}
cout<<"End of Output"<<endl;
return 0;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator