Deleted " ++number statement from Floyd's Triangle " (#30858)
added "number++" within the printf()
This commit is contained in:
committed by
Christopher McCormack
parent
863fd135ea
commit
8f9d26c4ad
@ -656,11 +656,9 @@ int main()
|
||||
{
|
||||
for(j=1; j <= i; ++j)
|
||||
{
|
||||
printf("%d ", number);
|
||||
++number;
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
printf("%d ", number++);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user