well I am new to c++ and don't know if I am doing the right thing here.
My problem is I want the output display to pause so I can view the output and see what is happening. Below is what I have done so far can anyone help me with this please.
#include <iostream> // iostream header file
using namespace std; // using namesapce standard directive
int main() // function main begins program execution here
{
int average;
int qualityPoints(int average);
if ( average >=90 && average <=100 )
return 4;
else if ( average >=80 && average <90 )
return 3;
else if ( average >=70 && average < 80 )
return 2;
else if ( average >=60 && average <70)
return 1;
else
return 0;
system("pause");// pause the output display from disappearing
return o;
}