diff --git a/E.c b/E.c new file mode 100644 index 0000000000000000000000000000000000000000..e854b1d119fcd727b943cb03bb7f2ec5a608cbd4 --- /dev/null +++ b/E.c @@ -0,0 +1,34 @@ +/*D letter pattern +****** +* +* +* +****** +* +* +* +****** */ + + + + + + + + +#include <stdio.h> +int main(){ + int n; + printf("Enter the limit (prefer odd number):"); + scanf("%d", &n); + for(int i=1; i<=n; i++){ + for(int j=1; j<=n; j++){ + if((i==1&&i<=n)||(i==n&&i<=n)||(j==1&&j<=n)||(i==(n+1)/2)){; + printf("*"); + } else{ + printf(" "); + } + } + printf("\n"); + } +}