Skip to content

Instantly share code, notes, and snippets.

@jweyermtb
Created September 28, 2017 04:55
Show Gist options
  • Save jweyermtb/09b575c2a165cf7d9b25786a498994f5 to your computer and use it in GitHub Desktop.
Save jweyermtb/09b575c2a165cf7d9b25786a498994f5 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main ()
{
const int taxrate;
double costmeal, tiprate;
int toltalcost;
cout<<"what is the cost of your meal";
cin>> costmeal;
cout<<" what is the tax rate";
cin>> taxrate;
cout<<"what is the tip rate";
cin>> tiprate;
int costtax
costtax= costmeal + (costmeal * taxrate);
int tip;
tip = costmeal * tiprate;
totalcost = tip + costtax;
cout<< totalcost << endl;
return 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment