1. int rowcount;
2. int columncount;
3. int count;
4. printf("Enter a integer\n");
5. scanf("%d",&rowcount);
6. for(count=1;count<=rowcount;++count)
{
if (count==2)
{printf("hi");
printf("\n");}
else;
for(columncount=1;columncount<=count;columncount++)
{
printf("%d",columncount);
}
printf("\n");
}
return 0;
我想問第6個個;++count唔係先+1咩即係第一次就變2,點解佢第一次都係1?