Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package basicjava;
- import java.util.Scanner;
- public class FahrenheitToCelsius {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- System.out.print("Enter your Fahrenheit temperature: ");
- double n = input.nextDouble();
- double cel = 0.5556*(n-32);
- System.out.println("Celsius Temperature : " +cel);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement