fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int i,j,n;
  5. for(i=1;i<=4;i++)
  6. {
  7. for(j=1;j<=4;j++)
  8. {
  9. if(i==1 || i==4) printf("*");
  10. else if(j==1 || j==4) printf("*");
  11. else printf(" ");
  12. }
  13. printf("\n");
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0s 5300KB
stdin
Standard input is empty
stdout
****
*  *
*  *
****