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