Code:
//Ripal Bhatt
#include <iostream>
using namespace std;
int main()
{
float month1, inch1, month2, inch2, month3, inch3;
float avg;
cout << "Type the first month.";
cin >> month1;
cout << "Type the inches of rainfall for the first month. ";
cin >> inch1;
cout << "Type the second month. ";
cin >> month2;
cout << "Type the inches of rainfall for the second month. ";
cin >> inch2;
cout << "Type the third month. ";
cin >> month3;
cout << "Type the inches of rainfall for the third month. ";
cin >> inch3;
avg = (inch1 + inch2 + inch3) / 3;
cout << "The average rainfall for " << month1 << ", " << month2 << ", and " << month3 << "is " << avg << "inches.";
return 0;
}

