using System.Collections.Generic;
public static void Main()
var dict = new Dictionary<string,double>();
dict.Add("AA ile geçtiniz.", 90);
dict.Add("BA ile geçtiniz.", 85);
dict.Add("BB ile geçtiniz.", 80);
dict.Add("CB ile geçtiniz.", 75);
dict.Add("Koşullu geçtiniz.", 50);
dict.Add("Dersi geçemediniz.", 0);
const double vize = 90, final = 89;
var avg = (vize * 0.4) + (final * 0.6);
var message = dict.Where(x => avg >= x.Value).OrderByDescending(x=>x.Value).FirstOrDefault().Key;
Console.WriteLine("Avg:" + avg);
Console.WriteLine(message);