Created
October 9, 2018 07:07
-
-
Save muhammedzaimtr/e3e2f81d81c7063cf250db6ebb54b5f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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