#include <stdio.h>
int main(void)
{
const float INCHES_PER_FEET = 12;
float height;
char name[40];
printf("What is your name?: ");
scanf("%s", name);
printf("What is your height in inches?: ");
scanf("%f", &height);
printf("%s, you are %.3f feet tall./n", name, height / INCHES_PER_FEET);
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266407.html