#include <iostream>
using namespace std;
int main()
{
int money;
cout<<"Enter the amount of money do you have : "<<endl;
cin>>money;
if(money>=1000)
{
cout<<"You have "<<money<<endl;
cout<<"Go to Starbucks"<<endl;
}
else/* if we add semicolon in the end of else the it will execute else in any condition*/
{
cout<<"Go to CCD"<<endl;
}
cout<<"Get Back To Home"<<endl;
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: