Posted by Materi Teknik Informatika • Informasi Teknologi Informasi • Digital Marketing on 9/21/2014
import java.util.Scanner;
public class Prak_106 {
public static void main(String[] args) {
Scanner masukan = new Scanner(System.in);
float celcius, reamur;
System.out.print("Masukan nilai sushu (Celcius) : ");
celcius = masukan.nextFloat();
reamur = 0.8f * celcius;
System.out.println();
System.out.println("Nilai Suhu Reamur Dari Input : ");
System.out.println(reamur);
}
}
Berikut hasil output Program Menghitung Suhu yang dihasilkan.