: Hello experts,
:
: I would like some help to print the following table
:
: 1
: 1 2
: 1 2 3
: .....
: .
: .
: .............10
:
: Any ideas appreciated
:
: attis
:
This might work (Not tested nor compilied):
for (int y=0; y<10;y++) {
static unsigned int i=1;
for (int x=1; x<=i; x++)
std::cout << x;
std::cout << std::endl;
i++;
}
[/code]