Created
April 7, 2014 20:02
-
-
Save merbussa/10041695 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
/*copyright ftastemur */ | |
#include <stdio.h> | |
int main(void) | |
{ | |
int sayi,flag=0, i; | |
printf("Bir sayi giriniz: "); | |
scanf("%d", &sayi); | |
for( i=2;i<=sayi/2;i++) { | |
if(sayi%i==0) { | |
flag=1; | |
break; | |
} | |
} | |
if(flag==0) | |
printf("Sayi Asaldir.\n"); | |
else | |
printf("Sayi Asal Degildir.\n"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment