Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save muhammedzaimtr/e3e2f81d81c7063cf250db6ebb54b5f5 to your computer and use it in GitHub Desktop.
Save muhammedzaimtr/e3e2f81d81c7063cf250db6ebb54b5f5 to your computer and use it in GitHub Desktop.
#include
#include <stdio.h>
#include <stdlib.h>
int main()
{
int sayi,i,j;;
printf("BIR SAYI GIRINIZ => ");
scanf("%d",&sayi);
for(i=1; i<=sayi; i++)
{
for(j=1; j<=sayi; j++)
{
if(i==1||i==sayi || j==1||j==sayi)
printf("*");
else
printf(" ");
}
printf("\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment