#include <stdio.h> #include <stdlib.h> #define Hinght 10 int calculate(int Long,int Width); /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { int m-Long; /*编译时提示这里的m出错怎么回事?*/ int m-windth; int result; printf("请输入长度: \n"); scanf("%d",&m-Long); printf("请输入宽度: \n"); scanf("%d",&m-Windth); int result=calculate(m-Long,m-Width); printf("它的面积是: \n"); scanf("%d",result); return 0; } int calculate(int Long,nit Width) { result=Hinght*Long*Width; return result; }
幕布斯9487442
望远
Tanh
bj藏锋
Genment
Stardust1001
Stardust1001
谜cn
谜cn
相关分类