Minggu, 23 Oktober 2011

perhitungan suhu celcius ke fahrenheit

public class suhu
{


public static void main(String args[])




{


int celcius;
int fahrenheit;
System.out.printf("\2=");
Scanner input = new Scanner(System.in);
celcius = input.nextInt();




fahrenheit = (9/5 * celcius) + 32;
System.out.println("nilainya dalam fahrenheit = " + fahrenheit);






}




}

0 komentar:

Posting Komentar

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes