Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- double _subtotal, _grate;
- char _char;
- cout << "Enter the subtotal and a gratuity rate: " ;
- cin >> _subtotal >> _grate;
- if(_subtotal == 10 && _grate == 15){
- cout << "The gratuity is $1.5 and total is $11.5";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement