Hasan Akpürüm
Kıdemli Yazılım Danışmanı
Makele Detayı

c# console asal sayı bulma

11/11/2011 6:46:29 AM
//Asal sayı bulma int sayi = 0; bool bolunurmu = true; Console.WriteLine("bir sayı giriniz"); sayi = int.Parse(Console.ReadLine()); for (int i = 2; i < sayi; i++) { if (sayi %i == 0) { bolunurmu = false; Console.WriteLine("Sayı asal sayı değil"); } } if (bolunurmu == true) { Console.WriteLine("Asaldır"); } Console.ReadLine();
Yorum yaz

Thanks, your message is sent successfully.

cheap air max cheap air jordans pompy wtryskowe cheap nike shoes bombas inyeccion cheap jordans cheap jordan shoes wholesale jordans cheap jordan shoes cheap jordans cheap nike shoes wholesale jordans cheap wholesale jordans cheap wholesale nike cheap wholesale jerseys big size jordans