fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int n=1;
  6. if(n<3||n%2==0)
  7. {
  8. return 0;
  9. }
  10. for(int i=0;i<n;i++)
  11. {
  12. for(int j=0;j<=n;j++)
  13. {
  14. if(i==0)
  15. {
  16. cout<<"*";
  17. }
  18. }
  19. }
  20. int mid=(n)/2;
  21. for(int i=0;i<n;i++)
  22. { cout<<endl;
  23. for(int j=0;j<=n;j++)
  24. {
  25. if(j==(mid)||j==(mid+1))
  26. {
  27. cout<<"e";
  28. //cout<<mid;
  29. }
  30. else{
  31. cout<<" ";
  32. }
  33. }
  34.  
  35. }
  36. return 0;
  37. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty