#include <stdio.h>
#include <stdlib.h>
int main()
{
float height_in_cm;
char height_in_inches[4];
printf("Enter your height in inches:");
gets_s(height_in_inches);
height_in_cm = atoi(height_in_inches)*2.54;
printf("You are %.2f centimeters tall./n",height_in_cm);
return(0);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266685.html