Home > database >  4 x 5 matrix error but also can be executed correctly
4 x 5 matrix error but also can be executed correctly

Time:10-07

#include
Int main ()
{
Int I, j, n=0;
for(i=1; i<=4; I++)
for(j=1; J<=5; J++ n++)
{
If (n % 5==0)
printf("\n");
Printf (" % d \ t ", I * j);
}
return 0;
}
The number of five cycle after the first line input end, n=5, j=6, at this time should end the for loop,
Cannot perform operation, a new line is still in the program can normal line operation!
  • Related