Skip to content

Instantly share code, notes, and snippets.

View maxchehab's full-sized avatar
🐝
explaining think to sand

Max Chehab maxchehab

🐝
explaining think to sand
View GitHub Profile
#include <iostream>
using namespace std;
int main ()
{
int taxrate;
double costmeal, tiprate;
int totalcost;
cout<<"what is the cost of your meal";
cin>> costmeal;
cout<<" what is the tax rate";
#include <iostream>
#include <cmath>
#include <ctime>
#include <cstdlib>
using namespace std;
void displayGameRules() {
#include <iostream>
#include <cmath>
#include <ctime>
#include <cstdlib>
using namespace std;
void displayGameRules() {
cout << "Welcome to Pass the Pigs! Here are the rules. " << endl;
cout << "The player tosses two pigs, each can land in six positions: " << endl;