很简单一问题,郁闷了
#include<stdio.h>void main(void)
{
int i,j,n;
printf("I WANT TO PUT THE CUBE IS:\n");
scanf("%d",&n);
for(i=0;i<n;i++)
for(j=0;j<n;j++)
{ if((i%2)==0)
printf("%d",4*i+j+1);
if((i%2)!=0)
printf("%d",4*(i+1)+j);
if(j=n-1) printf("\n");
}
}
我的目的是打出回环数,但是为啥循环不了呢???