- 2024高階語言程式設計:https://edu.cnblogs.com/campus/fzu/2024C
- 高階語言程式設計課程第三次作業:https://edu.cnblogs.com/campus/fzu/2024C/homework/13284
- 學號:102400215
- 姓名:胡加乘
4.8程式設計練習
2
4
/* 4.8.4.c -- 輸出身高和姓名資訊。 */
#include <stdio.h>
int main()
{
float height;
char name[20];
printf("Please enter your height in feet: ");
scanf("%f", &height);
printf("Please enter your name: ");
scanf("%s", name);
printf("%s, you are %.3f feet tall.", name, height);
return 0;
}