public Student(string name, int grade1, int grade2, int grade3, int exam)
bool check1 = ((this.grade1 > 80) && (this.grade2 > 80));
bool check2 = ((this.grade1 > 80) && (this.grade3 > 80));
bool check3 = ((this.grade2 > 80) && (this.grade3 > 80));
if ((check1) || (check2) || (check3)) return true;
public override string ToString()
string print = $"the final grade of <{this.name}> is <{this.exam}> ";
public static void Main(string[] args)
Student s1 = new Student("kami", 90, 60, 99, 94);
Console.WriteLine(s1.ToString());