find avg of high and low temp 2d array

558fe5180e0e8fc922d31c23ef84d240

#include "iostream"
#include "iomanip"
#include "cmath"
#include "string"
using namespace std;

int main()

int temp[7][2]= {0};
int day = 0;

for(int i = 0; i < 7; i++) {
cout<<endl<<" Day: ";
cin >> day;

for(int i = 0; i < 7; i++) {
cout << "\nEnter low temperature: ";
cin >> temp[day][0];

for(int i = 0; i < 7; i++) {
cout << "\nEnter high temperature: ";
cin >> temp[day][1];

for(int i = 0; i < 7; i++) {
cout << "\nDay: " << day << " High: " << temp[day][1] << " Low: " << temp[day][0] <<endl;

Inline Code Example Here
return 0;