Created
October 9, 2018 07:08
-
-
Save muhammedzaimtr/c862833f7adf00b1f4c0a40f980809ea 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