fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. for(int i=n;i<=1;i--){
  8. for(int j=n;j<=i;j--){
  9. cout << "*";
  10. }
  11. cout << endl;
  12. }
  13. cout << endl;
  14. }
Success #stdin #stdout 0.01s 5296KB
stdin
4
stdout