查看完整内容
改正如下:
#include
#include
int main()
{
int inch; float centimeter;
printf("please enter inch.\n");
scanf("%d", &inch);
centimeter = inch * 2.54; //写反了没发现吧,哈哈,看清要干什么啊
printf("The inches you enter are equal to %.2f centimeters",centimeter);//后面没有加要放进去的变量啊,忘了吧
system("pause");
return 0;
}