Driver code
public static void Main ( String [ ] args ) { int n = 5 ; double [ ] marks = { 90 , 80 , 70 , 80 , 90 } ; double cgpa = CgpaCalc ( marks , n ) ; Console . WriteLine ( " CGPA ▁ = ▁ " + cgpa ) ; Console . WriteLine ( " CGPA ▁ Percentage ▁ = ▁ { 0 : F2 } " , cgpa * 9.5 ) ; } }