/*
Write a C++ program which inputs litre consumption given in miles/gallon and
which translates these figures into the litres/kilometre format which is more
common in Europe.Use the following conversion factors: 1 mile=1.609km and
1 gallon= 3.785litres */
#include <iostream>
using namespace std;
int main() {
float consumption; // given in miles/gallon
float europecons; // given in litres/kilometre
cout << "Ingrese consumption (miles/gallon): ";
cin >> consumption;
europecons = 3.785/(consumption*1.609);
cout << "\nThis is equivalent to " << europecons << " litres/kilometre";
// system("pause>nul");
}
LyoKV3JpdGUgYSBDKysgcHJvZ3JhbSB3aGljaCBpbnB1dHMgbGl0cmUgY29uc3VtcHRpb24gZ2l2ZW4gaW4gbWlsZXMvZ2FsbG9uIGFuZCAKd2hpY2ggdHJhbnNsYXRlcyB0aGVzZSBmaWd1cmVzIGludG8gdGhlIGxpdHJlcy9raWxvbWV0cmUgZm9ybWF0IHdoaWNoIGlzIG1vcmUKY29tbW9uIGluIEV1cm9wZS5Vc2UgdGhlIGZvbGxvd2luZyBjb252ZXJzaW9uIGZhY3RvcnM6IDEgbWlsZT0xLjYwOWttIGFuZAoxIGdhbGxvbj0gMy43ODVsaXRyZXMgICovCgojaW5jbHVkZSA8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKICAgIGZsb2F0IGNvbnN1bXB0aW9uOyAgICAvLyBnaXZlbiBpbiBtaWxlcy9nYWxsb24KICAgIGZsb2F0IGV1cm9wZWNvbnM7ICAgICAvLyBnaXZlbiBpbiBsaXRyZXMva2lsb21ldHJlCgogICAgY291dCA8PCAiSW5ncmVzZSBjb25zdW1wdGlvbiAobWlsZXMvZ2FsbG9uKTogIjsKICAgIGNpbiA+PiBjb25zdW1wdGlvbjsKCiAgICBldXJvcGVjb25zID0gMy43ODUvKGNvbnN1bXB0aW9uKjEuNjA5KTsKCiAgICBjb3V0IDw8ICJcblRoaXMgaXMgZXF1aXZhbGVudCB0byAiIDw8IGV1cm9wZWNvbnMgPDwgIiBsaXRyZXMva2lsb21ldHJlIjsKCiAgICAvLyBzeXN0ZW0oInBhdXNlPm51bCIpOwp9