use c++ program to calculate the total cgpa of a student doing 40 courses
1
Expert's answer
2013-08-01T07:25:22-0400
#include <iostream> #include <conio.h>
using namespace std; //main function int main() { int total=0;//variable for total for(int i=0;i<40;i++){ // cout<<"Enter gpa for student course "<<(i+1)<<": "; int gpa; cin>>gpa; total+=gpa;//add to total } //show result cout<<" Total gpa of student doing 40 courses is: "<<total;
Comments
Leave a comment