#include <iostream>
using namespace std;
int main() {
int altura;
cout << "Altura: "; cin >> altura;
for(int i = altura; i >= 1; i--) {
for(int j = 1; j <= i; j++) {
cout << "*";
}
cout << "\n";
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: