Driver code
int main ( ) { int n = 5 ; double marks [ ] = { 90 , 80 , 70 , 80 , 90 } ; double cgpa = CgpaCalc ( marks , n ) ; cout << " CGPA ▁ = ▁ " ; printf ( " % .1f STRNEWLINE " , cgpa ) ; cout << " CGPA ▁ Percentage ▁ = ▁ " ; printf ( " % .2f " , cgpa * 9.5 ) ; }