In: Computer Science
import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.Scanner;
public class WaterState
{
public static void main (String[] args) throws java.lang.Exception
{
boolean run = true;
while(run)
{
Scanner scan = new Scanner(System.in);
System.out.println("What is the temperature in degrees
Celsius?");
double temp = scan.nextDouble();
String state = "liqud";
if (temp <= 32)
state = "solid";
else if(temp >= 212)
state = "gas";
state = " Water is " + state;
System.out.println(state);
}
}
}