//OrinTill Qimid CS1A Chapter 4, P. 294, 10
//
/**************************************************************
 * Compute rainfall
 * 
 * ____________________________________________________________
 * This programs calculate the average rainfall per month
 * ____________________________________________________________
 * INPUT
 * year : the amount of years program needs to calculate.
 * OUTPUT
 * total_month : The number of month
 * total_rainfall : the total rainfall
 * average_rain : average rainfall per month
 **************************************************************/
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;

int main() 
{
   float years, 
   month,
   total_month,
   average_rain,
   rainfall,
   total_rainfall;
   cout<<"Please enter the amount of years"<<endl;
   cin >> years;
    for (float time = 1; time<= years; time++)
    {
       for (month = 1; month <= 12; month++)
       {
       rainfall;
       cout<<"please enter how much rainfall year "<<time<<", month 2"<< month<< endl;
       cin>> rainfall;
       total_rainfall=+rainfall;
       }
       total_month=+12;
    }
    average_rain=total_rainfall/total_month;
     cout << "\nNumber of months: " << total_month<< endl;
    cout << "Total inches of rainfall: " << total_rainfall << endl;
    cout << "Average rainfall per month: " << average_rain << " inches" << endl;
   
    

    
	return 0;
}