作者在 2021-04-11 12:21:47 发布以下内容
1.1.c
#include <stdio.h>
#define INCH_PER_CM 2.54
int main(void) {
double inch, cm;
printf("Enter an inch value:");
scanf("%lf", &inch);
cm = inch * INCH_PER_CM;
printf("The cm value is:%lf\n", cm);
return 0;
}