[code lang="csharp"]
static void Main(string[] args)
{
int top=0; double ort=0;
Byte[] notlar = new byte[3];
for (int i = 0; i < 3; i++)
{
Console.Write((i+1)+". notu :");
notlar[i] = Convert.ToByte(Console.ReadLine());
}
top = notlar[0] + notlar[1] + notlar[2];
ort = top / 3;
Console.WriteLine("ortalama :"+ort);
Console.ReadKey();
}
[/code]
Hiç yorum yok:
Yorum Gönder