For loops

hi guys, i would like to print something like
3 2 1
2 1
1
or
1
2 1 2
3 2 1 2 3
4 3 2 1 2 3 4
using a for loop but my codes are coming all wrong please help me out??
Mess around with it.

1
2
3
4
5
6
7
8
#include <iostream>
int main()
{
    int a(4);
    for (int i(a); i >= -a; --i)
        std::cout << i << " ";
    return 0;
}
thanks very much dude!!!!!!
Topic archived. No new replies allowed.