public class Solution {
public static void main(String[] args) {
//write your code here
convertEurToUsd(123,43.5);
convertEurToUsd(54,67.4);
System.out.println(convertEurToUsd(123,43.5));
System.out.println(convertEurToUsd(54,67.4));
}
public static double convertEurToUsd(int eur, double exchangeRate) {
//write your code here
double usdollers=eur*exchangeRate;
return usdollers;
}
package com.codegym.task.task03.task0303;
/*
Currency exchange
*/
public class Solution {
public static void main(String[] args) {
//write your code here
convertEurToUsd(123,43.5);
convertEurToUsd(54,67.4);
System.out.println(convertEurToUsd(123,43.5));
System.out.println(convertEurToUsd(54,67.4));
}
public static double convertEurToUsd(int eur, double exchangeRate) {
//write your code here
double usdollers=eur*exchangeRate;
return usdollers;
}
}