public class Konversi
{
public static void main(String args[])
{
double C=73,x=0.8,p=1.8,q=2,R,F;
{
System.out.println("Konversi Derajat Celcius ke Reamur");
System.out.println("yaitu");
System.out.println(" ");
System.out.println("Diketahui C= "+73);
System.out.println("Diketahui x= "+0.8);
R=C*x;
System.out.println(" ");
System.out.println("Hasil dari C*X=?");
System.out.println("Hitung : "+C+" * "+x+" = "+R);
{
System.out.println(" ");
System.out.println(" ");
System.out.println("Konversi Derajat Celcius ke Fahrenheit");
System.out.println("yaitu");
System.out.println(" ");
System.out.println("Diketahui C= "+73);
System.out.println("Diketahui p= "+1.8);
System.out.println("Diketahui q= "+2);
F=C*p+q;
System.out.println(" ");
System.out.println("Hasil dari C*p+q=?");
System.out.println("Hitung : "+C+" * "+p+" + "+q+" = "+F);
}}}}
Categories:
java