Berikut program Java untuk menghitung kurs Mata Uang, silahkan Anda modifikasi agar dapat menghitung mata uang Yen, Ringgit, SGD dan Yuan.

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner masukan = new Scanner(System.in);
        float rupiah, dolar, euro;
        System.out.print("Masukan Rupiah = ");
        rupiah = masukan.nextFloat();
        dolar = (float) (rupiah*0.0001);
        euro = (float) (rupiah*0.00004);
        System.out.println();
        System.out.println("Hasil Kurs : ");
        System.out.println("Dolar = " + dolar);
        System.out.println("Euro = " + euro);
    }
}


Output:

Masukan Rupiah = 2000000
Hasil Kurs =
Dolar = 200.0
Euro = 80.0

Process finished with exit code 0