Created
December 21, 2019 08:19
-
-
Save ouzdev/35b1fad138d778dc4441e8aa21884012 to your computer and use it in GitHub Desktop.
Asal Sayı
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
for (int i = 2; i < 100; i++) | |
{ | |
bool kontrol = true; | |
for (int j = 0; j < i; j++) | |
{ | |
if (i%j==0) | |
{ | |
kontrol = false; | |
break; | |
} | |
} | |
if (kontrol) | |
{ | |
int sonuc = i; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment