for(int i = 0; i < 4; i++) { int quarter = 1; cout << "Enter the name of the division: "; cin >> div.divName[i]; for(int i = 0; i < 4; i++) { cout << "Enter in the sales for quarter "<< quarter <<": "; cin >> div.sales[i]; if(div.sales[i] > 0) { quarter++; } else { cout << "Sales are not allowed to be negative.\n"; } } }