问题描述:
代码如下:
//7-1
#include <stdio.h>
int main ( void )
{
int n;
int foot, inch;
scanf( "%d", &n );
foot = (double)n / 100 / 0.3048;
inch = ( (double)n / 100 / 0.3048 - foot ) * 12;
printf( "%d %d", foot, inch );
return 0;
}
问题描述:
代码如下:
//7-1
#include <stdio.h>
int main ( void )
{
int n;
int foot, inch;
scanf( "%d", &n );
foot = (double)n / 100 / 0.3048;
inch = ( (double)n / 100 / 0.3048 - foot ) * 12;
printf( "%d %d", foot, inch );
return 0;
}