请大家帮帮忙,看一下这代码错在哪
程序是打印每一行最大的数:请问这样写错在哪里为什么老是运行不了?
#include "stdafx.h"
int main(int argc, char* argv[])
{
printf("Hello World!\n");
int i ,j,max;
int a[3][4]={{61,12,56,63},{18,17,55,8},{32,56,59,9}};
for (i = 0 ;i <=2;i ++)
{
for (j = 0 ;j <=3;j ++)
{
printf("%3d" ,a[i][j]);
}
printf("\n");
}
for (i = 0; i <= 2;i ++)
{
max=0;
for (j = 0 ;i<=3;j++)
{
if (a[i][j]>a[max][j])
max=i;
}
printf("the max is %d\n",a[max][j]);
}
return;
}