// purpose: introduce operator precedence import java.util.*; public class WhatsUp { // method main(): program starting point public static void main( String[] args ) { // set up input scanner Scanner input = new Scanner( System.in ); // get temperature of interest System.out.print( "Enter Celsius temperature: " ); int c = input.nextInt(); // convert int f = 32 + 9 / 5 * c; // display result System.out.println( c + " Celsius = " + f + " Fahrenheit" ); } }