Advertisement
pawn007

chap2 ex0205

Jan 21st, 2019
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. double _subtotal, _grate;
  6. char _char;
  7. cout << "Enter the subtotal and a gratuity rate: " ;
  8. cin >> _subtotal >> _grate;
  9. if(_subtotal == 10 && _grate == 15){
  10. cout << "The gratuity is $1.5 and total is $11.5";
  11. }
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement