Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package temp.converter;
- import java.util.Scanner;
- /**
- *
- * @author Monty
- */
- public class TempConverter {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- double degf;
- double celsius;
- Scanner input = new Scanner(System.in);
- System.out.print("Enter fahrenheit: ");
- degf = input.nextDouble();
- celsius = ((degf-32)*5)/9;
- System.out.print("Celsius: " + celsius);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment