#include using namespace std; int main(void) { int n; cout << "何段まで表示しますか:"; cin >> n; for (int i = 1; i <= n; i++) { for (int j = 0; j <= n - i; j++) { cout << n; } cout << "\n"; } return 0; }