Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class DegreesConverter {
- public static void main(String[] args) {
- Scanner console = new Scanner(System.in);
- double kel = Double.parseDouble(console.nextLine());
- double cel = (kel - 273.15);
- double far = (kel * 9/5 - 459.67);
- System.out.println(cel);
- System.out.println(far);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement