hi everyone im new to c++ programming.
i need a little help with this for loop. say the user enters 5 this is supposed to be the output
5
54
543
5432
54321
all i can get is 54321 .. 5 times... can someone help me out a little. thx in advanceCode:#include <iostream> using namespace std; int main() { int number; cout << "Enter number" << endl; cin >> number; cout << endl; for (int i = number; i > 0; --i) { for (int j = number; j > 0 ; j--) { cout << j; } cout << endl; } return 0; }