#define _CRT_SECURE_NO_WARNINGS 1
#define cm 2.54
#include <stdio.h>
int main() {
float inch,height;
//声明变量
printf("Enter the inch of your height:");
//提示用户输入身高
scanf("%f", &inch);
//计算(身高(厘米)=身高(英尺)*2.54)
height = inch * cm;
printf("Hi,your height is %.2f inch,or %.2fcm.",inch, height);
//打印结果
return 0;
}
#define 可以用来定义标识符