输入错误,scanf语句
scanf("%f",&inch); \n也去掉你现在代码可以试试回车两下看看有没有输出显示
scanf("%f\n",inch); 修改为:scanf("%f",&inch);