+ 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 :)

28th Mar 2017, 10:50 AM
mark lim
mark lim - avatar
3 Respuestas
28th Mar 2017, 11:01 AM
Dev
Dev - avatar
+ 1
public static final float exchangeRate = 0.92; public function convertUsdToEur( Float usd ) { return usd*exchangeRate; } convertUsdToEur(100.00) will return 92.
28th Mar 2017, 12:51 PM
Lumpenstein
Lumpenstein - avatar
+ 1
Thank you guys
29th Mar 2017, 1:57 AM
mark lim
mark lim - avatar