+ 1
Can anyone give code in this output.
Output: Enter a number in dollar : 100.00 100.00 dollar is 92.02 euro (note:this is conversion) Thank you :)
3 Respostas
+ 12
You can checkout my code:
https://code.sololearn.com/cSsRwxWoR7uo/?ref=app
+ 1
public static final float exchangeRate = 0.92;
public function convertUsdToEur( Float usd ) {
return usd*exchangeRate;
}
convertUsdToEur(100.00) will return 92.
+ 1
Thank you guys