Answers for "fah to cel formula"

16

fahrenheit to celsius formula

cels = (fahr - 32.0) * 5.0/9.0; //Fahr to cels
fahr = (cels * 9.0/5.0) + 32.0; //Cels to fahr
Posted by: Guest on December-21-2020
11

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);
    }
}
Posted by: Guest on August-28-2020
5

celsius to fahrenheit formula

fahr = celsius * (9.0/5.0) + 32.0;
Posted by: Guest on January-11-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language