Please help me. Inverted pyramid

Hello everyone, I am new to C++ and I want to make an inverted pyramid so it follows the form of:

55555
4444
333
22
1

The goal is to make it look like that pattern by entering the number that I want to be starting from. So if I input 5 it will look like that. Thank you.
Topic archived. No new replies allowed.