Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
currency.java
package currencyconversion; import java.util.*; public class currency { double inr,usd; double euro,yen; Scanner in = new Scanner(System.in); public void dollartorupee() { System.out.println("Enter Dollars to convert into Rupees:"); usd=in.nextInt(); inr=usd*67; System.out.println("Dollar="+usd+"equal to INR="+inr); } public void rupeetodollar() { System.out.println("Enter Rupee to convert into Dollar:"); inr=in.nextInt(); usd=inr/67; System.out.println("Euro="+euro+"equal to INR="+inr); euro=in.nextInt(); inr=euro*79.50; System.out.println("Euro="+euro+"equal to INR="+inr); } public void rupeetoeuro() { System.out.println("Enter Rupees to convert into Euro:"); inr=in.nextInt(); euro=(inr/79.50); System.out.println("Rupees="+inr+"equal to Euro="+euro); } public void yentorupee() { System.out.println("Enter yen to convert into Rupees:"); yen=in.nextInt(); inr=yen*0.61; System.out.println("Yen="+yen+"equal to INR="+inr); } public void rupeetoyen() { System.out.println("Enter Rupees to convert into Yen:"); inr=in.nextInt(); yen=(inr/0.61); System.out.println("INR="+inr+"equal to Yen"+yen); } }
run
|
edit
|
history
|
help
0
Basic_Structure
first activity
Class multiple
Main.java
homework
Document management system - build unordered list (table of contents) recursively
PE #8
A
Switch case example
Weird float operation!