/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package tugaspraktikum1;
/**
*
* @author Maswanul Dwi M
*/
import javax.swing.JOptionPane;
public class Tugaspraktikum1 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
int celcius;
float fareinhet;
celcius = Integer.parseInt(JOptionPane.showInputDialog("Masukan Derajat Celcius :"));
fareinhet = 9f/5f * celcius + 32f;
JOptionPane.showMessageDialog(null, "Hasil Konversi Suhu Dari Celcius Ke Fareinhet : "+fareinhet);
}
}