class suhu //class
{//open class suhu
public static void main(String[]args)//main method
{ //open main method
//deklarasi variabel
int c,f,r;
//data awal
c=30;
//proses
f=(c*9/5)+32;
r=(c*4/5);
//tampilan akhir
System.out.println("Nilai Celcius = "+c);
System.out.println("Nilai Konversi Suhu Celcius ke Farenheit = "+f);
System.out.println("Nilai Konversi Suhu Celcius ke reamur= "+r);
} //end main method
}//end class suhu
{//open class suhu
public static void main(String[]args)//main method
{ //open main method
//deklarasi variabel
int c,f,r;
//data awal
c=30;
//proses
f=(c*9/5)+32;
r=(c*4/5);
//tampilan akhir
System.out.println("Nilai Celcius = "+c);
System.out.println("Nilai Konversi Suhu Celcius ke Farenheit = "+f);
System.out.println("Nilai Konversi Suhu Celcius ke reamur= "+r);
} //end main method
}//end class suhu
Tidak ada komentar:
Posting Komentar