i run the programme on intelij and have no issues but on the task i get an error please help
package com.codegym.task.task03.task0303;
/*
Currency exchange
*/
public class Solution {
public static void main(String[] args) {
//write your code here
convertEurToUsd(50 , 2.5);
System.out.println(convertEurToUsd(50,2.5));
convertEurToUsd(101 , 2.0);
System.out.println(convertEurToUsd(101,2.0));
}
public static double convertEurToUsd(int eur, double exchangeRate) {
//write your code here
double dollars = 0 ;
dollars = eur * exchangeRate;
return dollars;
Please Help
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Misiu
15 November 2020, 11:35
Don't change starting code of main() method.
0