fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int n;
  7. cout<<"enter the value of n=";
  8. cin>>n;
  9.  
  10. for(int i=0;i<n+2;i++)
  11. {
  12. for(int j=0;j<n+2;j++)
  13. {
  14. cout<<"e";
  15. cout<<endl;
  16.  
  17. }
  18. for(int k=0;k<n;k++)
  19. {
  20. cout<<"*";
  21. }
  22.  
  23. cout<<endl;
  24. }
  25. return 0;
  26. }
  27.  
Success #stdin #stdout 0.01s 5296KB
stdin
3
stdout
enter the value of n=e
e
e
e
e
***
e
e
e
e
e
***
e
e
e
e
e
***
e
e
e
e
e
***
e
e
e
e
e
***