C# GECTİ KALDININ STATİK DİZİ VERSİYONU.

C# GECTİ KALDININ STATİK DİZİ VERSİYONU.
{
int[] notlar = new int[10];

int tpnot = 0;

for (int i = 0; i < 5; i++)

{

Console.WriteLine("{0}. DERS NOTUNU ve SÖZLÜ NOTUNU GİRİNİZ???", (i + 1));

notlar[i] = Convert.ToInt16(Console.ReadLine());

tpnot = tpnot + (notlar[i]);

}

double ort = tpnot / 5;

Console.WriteLine("\n Ögrencinin Ortalaması = {0}", ort);

if (ort < 45)

Console.WriteLine("///////// Dersten Kaldın ///////");

else

Console.WriteLine("///////// Dersi Geçtin ///////");

Console.ReadKey();

}