Hi, I'm new and need some assistance with my very first program.
After trying to figure the problem between me and my roommate, we keep getting the error "expected unqualified-id before '{' token" at line 24. The basis of the program is to calculate interest rates over a given 4 year period where the user prompts his initial investment and interest rate. Coding follows as:
#include <iostream>
#include <iomanip>
using namespace std;
int main();
{
int i,r,p;
cout << "What is your intital investment? ";
cin >> i;
//int r;
cout << "What is the interest rate? ";
cin >> r;