import java.util.Scanner;
public class ProgramVIone
{
public static void main(String[] args)
{
double temperature;
int which;
boolean stop=false;
System.out.print("Input the temperature that you want to be converted:");
Scanner input = new Scanner( System.in );
temperature=input.nextDouble();
do
{
System.out.print("1. Fahrenheit to Celsius\n2. Celsius to Fahrenheit\n3. Exit the
program\n Enter option:");
which=input.nextInt();
switch ( which )
{
case 1:
System.out.print("Do you want Fahrenheit converted into Celsius.");
break;
case 2:
System.out.print("Do you want Celsius converted into Fahrenheit.");
break;
case 3:
stop=true;
break;
default:
System.out.print("Invaild option, please retry.");
}
}
while (stop==false);
}
}