Hi, new programmer here, having trouble with very simple assignment, everytime i run this program it keeps printing zero as the average.
int main()
{
int numExercises, totalScore = 0, pointsPossible = 0;
bool condition = true;
cout << "Score received for exercise N: ";
cin >> totalScore;
cout << "Total points possible for exercise N: ";
cin >> pointsPossible;
cout.setf(ios::fixed);
cout.setf(ios::showpoint);
cout.precision(4);
cout << "Your average is " << totalScore / pointsPossible;
return 0;
can anyone tell me whats wrong with it?