SHARING KNOWLEDGE EACH OTHERS!

Wednesday, December 31, 2008

scanner function (celsius convert to fahrenheit )


public class TemperatureConverter1
{
//-----------------------------------------------------------------
// change the Fahrenheit equivalent of a specific Celsius
//-----------------------------------------------------------------
public static void main (String[] args)
{

double fahrenheitTemp;
int celsiusTemp = 24;
System.out.println ("Celsius Temperature: " + celsiusTemp);
System.out.println ("Fahrenheit Equivalent: " + (celsiusTemp*9/5+32));
}
}
GO TO CHAPTER 3

Stumble
Delicious
Technorati
Twitter
Facebook

0 Comments:

Post a Comment

Enter your email address:

 

SOFTWARES AND PLATFORMS Copyright © 2010 LKart Theme is Designed by Lasantha