| ||||||||||
| 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 | |||||||||
why out put limit exceed??xdjm们帮忙啊#include<stdio.h>
#include<math.h>
void main(){
float dia,dis,mph;
int re,time,n=0;
scanf("%f %d %d",&dia,&re,&time);
while(re!=0){
n++;
dis=dia/12/5280*3.1415927*re;
mph=dis/time*60*60;
printf("Trip #%d: %.2f %.2f\n",n,dis,mph);
scanf("%f %d %d",&dia,&re,&time);
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator