#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
while (N > 0) {
for (int i = 0; i < N; i++)
cout << "*";
cout << endl;
N--;
}
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
while (N > 0) {
for (int i = 0; i < N; i++)
cout << "*";
cout << endl;
N--;
}
return 0;
}