// // Name: CtoF.java // ..... // // // Goal: The code will read a temp. in cel, display its equ. in Feh. // import java.util.Scanner; public class CtoF { public static void main(String[] args) { Scanner input = new Scanner(System.in); double C, F; System.out.print("Enter temp. in Cel.: "); // p.98 C = input.nextDouble(); F = 9.0 * C / 5.0 + 32.0; // debug System.out.println(C + " degree Cel. is: " + F + " degree Feh."); } }