diff --git a/Day2-Operators/Cpp/main.cpp b/Day2-Operators/Cpp/main.cpp new file mode 100644 index 0000000..4b6e187 --- /dev/null +++ b/Day2-Operators/Cpp/main.cpp @@ -0,0 +1,27 @@ +#include + +using namespace std; + +// Complete the solve function below. +void solve(double meal_cost, int tip_percent, int tax_percent) { + double result; + result = meal_cost + (tip_percent*meal_cost)/100 + (tax_percent*meal_cost)/100; + cout<> meal_cost; + + int tip_percent; + cin >> tip_percent; + + + int tax_percent; + cin >> tax_percent; + + solve(meal_cost, tip_percent, tax_percent); + + return 0; +} diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..1885487 --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-midnight \ No newline at end of file