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;
}
I'm getting "[ILINK32 Error] Error: Unresolved external '__InitVCL' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\RAD STUDIO\7.0\LIB\CP32MTI.LIB|crtlvcl" error.

Last edited by shabbir; 23Feb2010 at 10:46.. Reason: Code blocks