lmc660 Posted December 12, 2008 Share Posted December 12, 2008 I need to write a small programm which converts the Maltese currency into Euro (multiply by 2.33). The program should print two tables separated by a blank line. The first table should contain the conversion from Lm1 to Lm10, with increments of 1. The second table should print the conversions from Lm10 to Lm100 (with increments of 10). the sample below shows a sample output of the program. lm 1 = eur 2.33 lm 2 = eur 4.66 Link to comment https://forums.phpfreaks.com/topic/136646-java/ Share on other sites More sharing options...
Mark Baker Posted December 12, 2008 Share Posted December 12, 2008 If you want a java program to do this, you should ask in a Java forum. If you want a php script: <?php for($Lm=1; $Lm<=10;$Lm++) { $euros = Lm * 2.33; echo "Lm $Lm = eur $euros <br />"; } ?> Link to comment https://forums.phpfreaks.com/topic/136646-java/#findComment-713516 Share on other sites More sharing options...
Mchl Posted December 12, 2008 Share Posted December 12, 2008 Seriously. It's like chevrolet user looking for parts in toyota store... And if its your homework, do it yourself so that you actually learn something. Link to comment https://forums.phpfreaks.com/topic/136646-java/#findComment-713518 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.