ad

Wednesday, April 23, 2025

C program to Print Alphabet E star pattern

  C program

C program to Print  Alphabet E star pattern

C program to Print  Alphabet E star pattern 

Example


#include <stdio.h>

int main() {
    int a,b;
    int height = 7;
    int width = 5;  

    for (a = 0; a < height;a++) {
        for (b = 0; b < width; b++) {
           
            if (b == 0 || (a == 0 || a == height / 2 || a == height - 1))

          printf("*");

        else

          printf(" ");

        }

        printf("\n");
   
}

    return 0;

}

C program to Print  Alphabet E star pattern  
Output 

C program to Print  Alphabet E star pattern

Related Post :-

C program to print alphabet c star

No comments:

Post a Comment