Kod: Tümünü seç
string[] isim = { "Ahmet", "Ayşe", "Mehmet", "Ali", "Fuat", "Mecnun", "Süleyman", "Fatih", "Hüseyin", "Kamil" };
string[] numara = { "5378899660", "5378899661", "5378899662", "5378899663", "5378899664", "5378899665", "5378899666", "5378899667", "5378899668", "5378899669" };
string[] e_mail = { "Ahmet@gmail.com", "Ayşe@gmail.com", "Mehmet@gmail.com", "Ali@gmail.com", "Fuat@gmail.com", "Mecnun@gmail.com", "Süleyman@gmail.com", "Fatih@gmail.com", "Hüseyin@gmail.com", "Kamil@gmail.com" };
Console.Write("Kaçıncı personele bakacaksınız(1-10)=");
int sayi = Convert.ToInt16(Console.ReadLine());
switch (sayi)
{
case 1: Console.Write(" " + isim[0] + " " + numara[0] + " " + e_mail[0]); break;
case 2: Console.Write(" " + isim[1] + " " + numara[1] + " " + e_mail[1]); break;
case 3: Console.Write(" " + isim[2] + " " + numara[2] + " " + e_mail[2]); break;
case 4: Console.Write(" " + isim[3] + " " + numara[3] + " " + e_mail[3]); break;
case 5: Console.Write(" " + isim[4] + " " + numara[4] + " " + e_mail[4]); break;
case 6: Console.Write(" " + isim[5] + " " + numara[5] + " " + e_mail[5]); break;
case 7: Console.Write(" " + isim[6] + " " + numara[6] + " " + e_mail[6]); break;
case 8: Console.Write(" " + isim[7] + " " + numara[7] + " " + e_mail[7]); break;
case 9: Console.Write(" " + isim[8] + " " + numara[8] + " " + e_mail[8]); break;
case 10: Console.Write(" " + isim[9] + " " + numara[9] + " " + e_mail[9]); break;
}