#include <iostream>
using namespace std;
string Euro;
string Dolar;
string Funt;
string Zloty;
int main(){
string wybor;
std::cout << "Podaj Walute do wymiany (Euro, Dolar, Funt, Zloty): ";
cin >> wybor;
string wybor2;
std::cout << "Podaj Walute do ktorej chcesz wymienic (Euro, Dolar, Funt, Zloty): ";
cin >> wybor2;
if(wybor=="Euro"&&wybor2=="Zloty"){
std::cout << "Podaj kapital: ";
int dig;
std::cin >> dig;
std::cout << "Otrzymany kapital:" << dig * 4.45 << std::endl;
return 0;
}
if(wybor=="Euro"&&wybor2=="Dolar"){
std::cout << "Podaj kapital: ";
int dig;
std::cin >> dig;
std::cout << "Otrzymany kapital:" << dig * 1.22 << std::endl;
return 0;
}
if(wybor=="Euro"&&wybor2=="Funt"){
std::cout << "Podaj kapital: ";
int dig;
std::cin >> dig;
std::cout << "Otrzymany kapital:" << dig * 0.85 << std::endl;
return 0;
}
if(wybor=="Dolar"&&wybor2=="Zloty"){
std::cout << "Podaj kapital: ";
int dig;
std::cin >> dig;
std::cout << "Otrzymany kapital:" << dig * 3.86 << std::endl;
return 0;
}
if(wybor=="Dolar"&&wybor2=="Euro"){
std::cout << "Podaj kapital: ";
int dig;
std::cin >> dig;
std::cout << "Otrzymany kapital:" << dig * 0.82 << std::endl;
return 0;
}
if(wybor=="Dolar"&&wybor2=="Funt"){
std::cout << "Podaj kapital: ";
int dig;
std::cin >> dig;
std::cout << "Otrzymany kapital:" << dig * 0.71 << std::endl;
return 0;
}
if(wybor=="Zloty"&&wybor2=="Dolar"){
std::cout << "Podaj kapital ";
int dig;
std::cin >> dig;
std::cout << "Otrzymany kapital:" << dig * 0.28 << std::endl;
return 0;
}
if(wybor=="Zloty"&&wybor2=="Euro"){
std::cout << "Podaj kapital ";
int dig;
std::cin >> dig;
std::cout << "Otrzymany kapital:" << dig * 0.23 << std::endl;
return 0;
}
if(wybor=="Zloty"&&wybor2=="Funt"){
std::cout << "Podaj kapital ";
int dig;
std::cin >> dig;
std::cout << "Otrzymany kapital:" << dig * 0.19 << std::endl;
}
if(wybor=="Funt"&&wybor2=="Dolar"){
std::cout << "Podaj kapital ";
int dig;
std::cin >> dig;
std::cout << "Otrzymany kapital:" << dig * 1.25 << std::endl;
return 0;
}
if(wybor=="Funt"&&wybor2=="Euro"){
std::cout << "Podaj kapital ";
int dig;
std::cin >> dig;
std::cout << "Otrzymany kapital:" << dig * 1.13 << std::endl;
return 0;
}
if(wybor=="Funt"&&wybor2=="Zloty"){
std::cout << "Podaj kapital ";
int dig;
std::cin >> dig;
std::cout << "Otrzymany kapital:" << dig * 5.12 << std::endl;
}
else{
std::cout << "Niepoprawna funkcja";
}
}