// // convertc2f program // // Author: Kenneth Chan // email : kjc@liverpool.ac.uk // Date : October 2008 // Description: program that converts celcius to fahrenheit // import java.util.Scanner ; class convertc2f { static Scanner input = new Scanner( System.in ) ; // // MAIN // public static void main( String args[] ) { double celcius ; double fahrenheit ; System.out.println( "Please enter degrees celcius: " ) ; celcius = input.nextDouble() ; fahrenheit = ((celcius*9)/5)+32 ; System.out.println() ; //System.out.println( celcius ) ; //System.out.println( fahrenheit ) ; System.out.printf( "%f celcius is %f fahrenheit\n", celcius, fahrenheit ) ; } }