summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BlankConsoleLab/CST116-Lab3-Havaldar.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/BlankConsoleLab/CST116-Lab3-Havaldar.cpp b/BlankConsoleLab/CST116-Lab3-Havaldar.cpp
index 1e06bf6..5597f45 100644
--- a/BlankConsoleLab/CST116-Lab3-Havaldar.cpp
+++ b/BlankConsoleLab/CST116-Lab3-Havaldar.cpp
@@ -77,6 +77,7 @@ int main()
totalCost += total;
}
+ //calculate average
avg = totalCost / totalPpl;
cout << " " << endl;