提问,为什么写的程序输出只有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; }
收起
输出那里去掉&符号输出用%f
报告相同问题?