Hello, i am a beginner in C++ programming. If someone could point out why this program will not compile and run, i would appreciate it.
Thanks.
Code:
#include <iostream>
using namespace std;
int main()
{
int money;
cout<<"How much money do you own at the moment (rounded to the nearest integer)?";
cin>> money;
cin.get();
if ( money <10 )
{cout<<"YOU ARE DIRT POOR\n";}
else if ( 10 >= money && money <= 100 )
{cout<<"YOU'VE GOT TO GET A JOB!\n";}
else ( money >100 )
{cout<<"That should buy you food and shelter for a few days!\n";}
cin.get();
}