12345678910
const int rows{ 9 }, digits{ 4 }; int initial{ 44 }; std::cout << std::setfill( '0' ); for( int i{ 1 }; i <= rows; i++ ) { for( int j{}; j < i; j++, initial-- ) std::cout << std::setw( digits ) << initial << " "; std::cout << "\n"; }