hey there.. i'm having a hard time to get output like below...
0
.1
..2
...3
....4
.....5
......6
.......7
........8
.........9
However.. i dont know how to insert the full stop symbol (.) inside my output..
here is my code which get output like below..
0
11
222
3333
44444
555555
6666666
77777777
888888888
9999999999
i really hope u guys can help me.. =)PHP Code:
#include <stdio.h>
int main () {
int x, y, i;
for (x = 0; x <= 9; x++) {
for (y = 0; y <= x; y++) {
printf("%d", x);
}
printf("\n");
}
return 0;
}