int main()
{
int m;
float s;
scanf("%d\n%f",&m,&s);
s=roundf(s);
//printf("%d\n%f",m,s);
int t=m*60+(int)s;
float fps=5280.0/t;
float mps=1609.34/t;
printf("%.2f fps\n",fps);
printf("%.2f mps",mps);
}
{
int m;
float s;
scanf("%d\n%f",&m,&s);
s=roundf(s);
//printf("%d\n%f",m,s);
int t=m*60+(int)s;
float fps=5280.0/t;
float mps=1609.34/t;
printf("%.2f fps\n",fps);
printf("%.2f mps",mps);
}
No comments:
Post a Comment