本帖最后由 in008 于 2013-8-22 16:45 编辑
[code=ObjC width=740px]#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,d;
a=1;
b=1;
while(a<16)
{
while(b<4)
{
//if(b=3)
printf("\n");
b=b+1;
}
printf("%d",a);
a++;
}
system("pause");
return 0;
}
[/code]
这两个运行的效果为什么会不一样?
[code=ObjC width=740px]#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,d;
a=1;
while(a<16)
{
b=1;
while(b<4)
{
//if(b=3)
printf("\n");
b=b+1;
}
printf("%d",a);
a++;
}
system("pause");
return 0;
}[/code]
|