|
i edited my previous post, please observe.
i edited my code to match your post.. and it still doesn't work
[php]
switch(choice)
{
case 1:
System.out.print("Enter Celsius: ");
Celsius=input.nextDouble();
tempValue=(9.0/5.0) * (Celsius+32);
System.out.printf("Fahrenheit = %.2f",tempValue);
break;
case 2:
System.out.print("Enter Fahrenheit: ");
Fahrenheit=input.nextDouble();
tempValue=(5.0/9.0) * (Fahrenheit-32);
System.out.printf("Celsius = %.2f",tempValue);
break;
default:
System.out.println("Invalid Input... Try Again.");
break;
}
[/php]
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"
SearchLores.org
|