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