Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert fahrenheit to celsius

import java.util.Scanner;

public class Main {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int far = sc.nextInt();
        int cel = (far - 32) * 5/9;
        System.out.printf("%d Fahrenheit is %d Celsius", far, cel);
    }
}
 
PREVIOUS NEXT
Tagged: #convert #fahrenheit #celsius
ADD COMMENT
Topic
Name
7+3 =