fork download
  1. #include<stdio.h>
  2.  
  3. int main() {
  4. int n;
  5. int i,j,k;
  6. printf("Enter the number(It should equal or greater than 3 and must be odd number:\n");
  7. scanf("%d",&n);
  8. if(n>=3&&n%2!=0)
  9. {
  10.  
  11. for(i=0;i<n;i++)
  12. {
  13. for(k=1;k<=n/2;k++)
  14. {
  15. printf(" ");
  16. }
  17.  
  18. printf("ee\n");
  19. }
  20. for(j=0;j<=n;j++)
  21. {
  22. printf("x");
  23. }
  24. }
  25. return 0;
  26. }
  27.  
Success #stdin #stdout 0s 5292KB
stdin
-88

stdout
Enter the number(It should equal or greater than 3 and must be odd number: