Nessiesson

malumthingy

Aug 7th, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.77 KB | None | 0 0
  1. /*numbers*/
  2. #include <cmath>
  3. #include <iostream>
  4. #include <cstdlib>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.         double f, t, a;
  10.         string output;
  11.  
  12.         f = 0;
  13.         t = 1700;
  14.         a = 10;
  15.  
  16.         if (f == 1)
  17.                 output = "Charge $15.00";
  18.         else
  19.                 if (t <= 1700)
  20.                         output= "Charge $10.00";
  21.                 else
  22.                         if (a <= 12)
  23.                                 output= "Charge $10.00";
  24.                         else
  25.                                 if (a >= 65)
  26.                                         output= "Charge $18.75";
  27.                                 else output= "Charge $25.00";
  28.  
  29.         cout<<"The Result is" <<
  30.         system("pause");
  31.         return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment