首页上一页 1 下一页尾页 1 条记录 1/1页
id returned 1 exit status
发表在C语言答疑区
2017-07-22
是否精华
是
否
版块置顶:
是
否
#include <stdio.h>
int calculate(int Long,int Width,int Height);
int main()
{ int result;
int m_Long;
int m_Width;
int m_Height;
printf("请输入长度\n");
scanf("%d",&m_Long);
print("请输入宽度\n");
scanf("%d",&m_Width);
printf("请输入高度\n");
scanf("%d",&m_Height);
result=calculate(m_Long,m_Width,m_Height);
printf("长方形的体积是: ");
printf("%d\n",result);
return 0;
}
int calculate(int Long,int Width,int Height)
{
int result=Long*Width*Height;
return result;
}