### Source code for TemperatureExample5.java:

>     public class TemperatureExample5
>     {
>     	public static void main(String args[])
>     	{
>     		// TemperatureExample5
>     		int temperature = 0;	// Change as needed.
>     		if (temperature < 60)
>     		{
>     			if (temperature < 40)
>     			{
>     				System.out.println("Cold");
>     			}
>     			else
>     			{
>     				System.out.println("Chilly");
>     			}
>     		}
>     		else
>     		{
>     			if (temperature <= 80)
>     			{
>     				System.out.println("Warm");
>     			}
>     			else
>     			{
>     				System.out.println("Hot");
>     			}
>     		}
>     	}
>     }

### Output from TemperatureExample5.java:

    Cold

--- Output Ends ---

#### NOTE:

You are reading previously generated output. You are not currently running the TemperatureExample5 application at the momement. You need to compile and run the source code first.

#### To run this program:

`
- javac TemperatureExample5.java
- java TemperatureExample5
`

Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR