Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Project1 {
- public static void main (String [] Args) {
- Scanner read = new Scanner (System.in);
- double f;
- double k;
- double c;
- System.out.println("Please enter the temperature in Fahrenheit value");
- f = read.nextInt();
- k = (f+459.67)*(5/9);
- System.out.println("Fahrenheit to Kelvin conversion equals :"+k);
- c = (f-32)*(5/9);
- System.out.println("Fahrenheit to Celsius conversion equals:"+c);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement