Well, I have a number that I wish to stay at four digits and I have no idea as to how to keep an integer stick to such a scheme.
It should come out like this;Code:#include <stdio.h>
int main(void)
{
int number = 0000;
for ( ; number < 1000 ; number++)
{
printf("%d\n", number);
}
return 0;
}
Yet it comes out like this;Code:0000
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
Any assistance would be appreciated :)Code:1
2
3
4
5
6
7
8
9
10

