首页 > 其他分享 >4-4

4-4

时间:2022-12-05 19:46:05浏览次数:29  
标签: body name scanf hight feet printf

#include<stdio.h>
#include<string.h>
int main(void)
{
float hight;
char name[20];
printf("please input body hight(cm) and name:\n");
scanf("%f",&hight);
scanf("%s",name);
printf("%s, you are %5.3f feet tall\n",name,hight/100);
return 0;
}

标签:,body,name,scanf,hight,feet,printf
From: https://www.cnblogs.com/xgd-521/p/16953272.html

相关文章