int deger;
for (int i = 1; i < 11; i++)
{
Console.Write("{0}. Sayıyı Giriniz : ", i );
deger = Convert.ToInt32(Console.ReadLine());
if (deger % 2 == 0)
{
Console.WriteLine("{0}. sayı çifttir", i );
}
else
{
Console.WriteLine("{0}. sayı tektir", i );
}
}
Console.ReadKey();Add a code snippet to your website: www.paste.org