define设置了数据,但输出时候不显示好郁闷求教啊
程序代码:
#include <stdio.h> #define Height 10 int calculate(int Long,int Width); int main(void) { int m_Long,m_Width,result; printf("长方形的高为:\n",Height); printf("请输入长方形的长为:\n"); scanf("%d",&m_Long); printf("请输入长方形的宽为:\n"); scanf("%d",&m_Width); result=calculate(m_Long,m_Width); printf("长方形体积是:"); printf("%d\n",result); return 0; } int calculate(int Long,int Width) { int result =Long*Width*Height; return result; }
这是出问题代码