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