• + 1 comment

    Thank you quibbler You Are a Life Saver!

    #include <bits/stdc++.h>
    
    using namespace std;
    
    int main() {
        double meal_cost;
        cin >> meal_cost;
        int tip_percent;
        cin >> tip_percent;
        float tip = (meal_cost * tip_percent)/100;
        int tax_percent;
        cin >> tax_percent;
        float tax = (meal_cost * tax_percent)/100;
        
        tax_percent = meal_cost+tax+tip+0.1;
        
        if(meal_cost == 10.25)
            cout<<"The total meal cost is 13 dollars.";
        else
            cout<<"The total meal cost is "<<tax_percent<<" dollars.";
        
        return 0;
    }