- Back to Home »
- Kod Bloğu Denemesi
Posted by : #m.mert
1 Haziran 2013 Cumartesi
int sayi, sonuc;
Console.WriteLine("Sayi Giriniz:");
sayi = Convert.ToInt32(Console.ReadLine());
sonuc = (sayi / 2) * 2; if (sayi == sonuc)
{
Console.WriteLine("Girilen Sayi Çifttir.");
}
if (sayi != sonuc)
{
Console.WriteLine("Girilen Sayi Tektir.");
}
Console.ReadLine();
//Deneye deneye bulacaz artık :))