MasterGun

Untitled

May 16th, 2020
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main(){
  2. setlocale(LC_ALL, "Russian");
  3. double fuelc;
  4. double fuelp;
  5. double dis;
  6. double tp;
  7. cout << "Enter fuel consumtion per 100 km" << endl;
  8. cin >> fuelc;
  9. cout << "Enter Fuel Price per 1l" << endl;
  10. cin >> fuelp;
  11. cout << "Enter distance in km" << endl;
  12. cin >> dis;
  13. tp = (dis / 100 * fuelc) * 2 * fuelp;
  14. cout << "Total price for fuel is: " << fuelp << endl;
  15. return 0;
RAW Paste Data