提问,为什么写的程序输出只有6422040一个值
#include <stdio.h>
int main()
{
float Inch ,Cetimeter;
Inch=0;
Cetimeter=0;
printf("请输入想要换算的厘米");
scanf("%d",&Inch);
Cetimeter=Inch*2.54;
printf("换算结果为%d英寸",&Cetimeter);
return 0;
}
提问,为什么写的程序输出只有6422040一个值
#include <stdio.h>
int main()
{
float Inch ,Cetimeter;
Inch=0;
Cetimeter=0;
printf("请输入想要换算的厘米");
scanf("%d",&Inch);
Cetimeter=Inch*2.54;
printf("换算结果为%d英寸",&Cetimeter);
return 0;
}