简单的模拟
#include <stdio.h>
const float pi=3.1415927;
float d, time, dis, mph;
int rev;
int main()
{
int n = 1;
while ( scanf("%f%d%f", &d, &rev, &time) && rev )
{
dis=(d*pi*rev)/63360;
mph=dis/time*3600;
printf("Trip #%d: %.2f %.2f\n", n, dis, mph);
n++;
}
return 0;
}