I know the nested loop i need to use,for i=1 to teller
for j=1 to num_year
cin>> sick_days
tottalsick_days+=sick_days
endinnerfor
endouterfor
just not sure how to apply it??
#include <iostream>
using namespace std;
int main()
{
int numTellers, teller, tellerAbsence;
for i=1 to teller
for j=1 to num_year
cin>> sick_days
tottalsick_days+=sick_days
endinnerfor
endouterfor
cout << "How many tellers worked at Nation’s Bank during each of the last three years?";
cin >> numTellers;
cout << "How many days was teller 1 out sick during year 1?";
cin >> tellerAbsence;
cout << "How many days was teller 1 out sick during year 2?";
cin >> tellerAbsence;
cout << "How many days was teller 1 out sick during year 3?";
cin >> tellerAbsence;
cout << "How many days was teller 2 out sick during year 1?";
cin >> tellerAbsence;
cout << "How many days was teller 2 out sick during year 2?";
cin >> tellerAbsence;
cout << "How many days was teller 2 out sick during year 3?";
cin >> tellerAbsence;