#include <stdio.h>
int main()
{
int n;
int a,b;
float t;
while(scanf("%d",&n)!=EOF)
{
t=(float)n/30.48;
a=(int)t;
t=t-a;
b=(int)(t*12);
printf("%d %d\n",a,b);
}
return 0;
}
厘米换算英尺英寸(15)
最新推荐文章于 2020-05-01 21:19:07 发布
#include <stdio.h>
int main()
{
int n;
int a,b;
float t;
while(scanf("%d",&n)!=EOF)
{
t=(float)n/30.48;
a=(int)t;
t=t-a;
b=(int)(t*12);
printf("%d %d\n",a,b);
}
return 0;
}