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
Browse: Home > scanner function (celsius convert to fahrenheit )
0 Comments:
Post a Comment