Execute the following code below?
#include<iostream.h> #include<conio.h> void main() { int eng, math, dhiv, islam, sci, tot; float avg; char grade; clrscr(); cout<<endl<<"ENTER MARKS"<<endl<<endl<<"English: "<<endl; cin>> eng; cout<<"Mathematics: "<<endl; cin>>math; cout<<"Dhivehi: "<<endl; cin>>dhiv; cout<<"Islam: "<<endl; cin>>islam; cout<<"Science: "<<endl; cin>>sci; tot = eng+math+dhiv+islam+sci; avg = tot/5; cout<<endl<<"Total Marks = "<<tot<<endl; cout<<endl<<"Average Marks = "<<avg<<endl; if (avg>=75) grade = 'A'; else if (avg>=65 && avg<=74) grade = 'B'; else if (avg>=50 && avg<=64) grade = 'C'; else if (avg>=40 && avg<=49) grade = 'D'; else grade = 'F'; cout<<endl<<"Grade = "<<grade; getch(); }
Zaarm Tech Selected answer as best November 20, 2021