#include using namespace std ; int main() { int grade_student1= 10 , grade_student2= 20 , grade_student3= 30 , grade_student4 = 40 , grade_student5= 50 , grade_student6= 60 , grade_student7= 70 , grade_student8=80, grade_student9=90 , grade_student10 =100 ; double total = 0 ; total = grade_student1 + grade_student2 + grade_student3 + grade_student4 + grade_student5 + grade_student6 + grade_student7 + grade_student8 + grade_student9 + grade_student10 ; cout << "Average is : " << total / 10.0 << endl ; int studentGrades[] = { 10 , 20 , 30 , 40 , 50 , 60 , 70, 80 , 90, 100 } ; total = 0 ; for( int i1=0 ; i1<10 ; i1++ ) { total = total + studentGrades[i1] ; } cout << "Average is : " << total / 10.0 << endl ; }