grade = Console.ReadLine(); Console.WriteLine(grade);
string v = Console.ReadLine(grade);
var grade = new Dictionary<string, float>() { ["A+"]=4.0f, ["A"]=4.0f, ["A-"]=3.7f, ["B+"]=3.3f, ["B"]=3, ["B-"]=2.7f, ["C+"]=2.3f, ["C"]=2, ["C-"]=1.7f, ["D+"]=1.3f, ["D"]=1, ["F"]=0, }; Console.ReadLine(grade); Console.WriteLine(grade);
string[] grades = {"A+","A","A-","B+","B","B-","C+","C","C-","D+","D","F"}; var grade = new Dictionary<string, float>() { ["A+"]=4.0f, ["A"]=4.0f, ["A-"]=3.7f, ["B+"]=3.3f, ["B"]=3, ["B-"]=2.7f, ["C+"]=2.3f, ["C"]=2, ["C-"]=1.7f, ["D+"]=1.3f, ["D"]=1, ["F"]=0, }; Console.WriteLine(grade["B+"]); Console.ReadLine();
Console.WriteLine(grades["B+"]);