Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class CelsiusToFahrenheit {
- public static void main(String[] args) {
- Scanner console = new Scanner(System.in);
- double cel = Double.parseDouble(console.nextLine());
- double far = (cel * 1.8) + 32;
- System.out.printf("F = %.2f", far);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement