Odpowiedź:
#include <iostream>
using namespace std;
float cena(float funtInEuro)
{
const float funtToKg = 0.453592;
const float euroToPLN = 4.47;
return funtInEuro * funtToKg * euroToPLN;
}
int main(int argc, char const *argv[])
{
float funtInEuro;
cout << "Podaj cene funta w euro " << endl;
cin >> funtInEuro;
cout << cena(funtInEuro);
return 0;
}
Wyjaśnienie:
Jak coś to pytaj