请问下边的代码有什么问题吗?我总是编译没错 ,运行不了。希望各位同学老师能帮我指出问题来。
#include<stdio.h>
void main()
{
int a[3][6],i,j,b=0,c=0,d,e;
printf("please input number:");
for(i=0;i<3;i++)
{
for(j=0;j<6;j++)
{
scanf("%d",a[i][j]);
}
}
for(j=0;j<6;j++)
{
b=b+a[0][j]*a[0][j];
}
for(j=0;j<6;j++)
{
c=b+a[1][j]*a[1][j];
}
d=b/36;
e=c/36;
printf("%d/n%d",d,e);
}
装箱问题
描述