numbers triangle
Write a C program to print the following number structure:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
can anyone please solve this?what I got is like:
1
12
123
1234
12345
thanks.
Last edited on
cout << "1" << " " << "2" << endl;
you should include a space between numbers
Topic archived. No new replies allowed.