C program
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
Related Post :-
No comments:
Post a Comment