/*O Letter pattern ********* * * * * * * * * * * * * * * ********* */ #include <stdio.h> int main(){ int n=7; 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&&j<=n)||(i==n&&j<=n)||(j==1&&i<=n)||(j==n&&i<=n)){ printf("*"); } else{ printf(" "); } } printf("\n"); } }