Horje
different formulas to convert celsius to fahrenheit Code Example
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  
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);
    }
}
different formulas to convert celsius to fahrenheit
function fahrenheitToCelsius(fahrenheit) {
  return (((fahrenheit - 32) * 5) / 9).toFixed(1);
} // Using toFixed returns a decimal value

function celsiusToFahrenheit(celsius) {
  return ((9 * celsius) / 5 + 32).toFixed(1);
} // Better to multiply in this order for celsius




Javascript

Related
get object field from variable name javascript Code Example get object field from variable name javascript Code Example
run javascript in flutter Code Example run javascript in flutter Code Example
js wait until 2 promises are resolved Code Example js wait until 2 promises are resolved Code Example
javascript dynamic property accessor Code Example javascript dynamic property accessor Code Example
loop through async javascript -1 Code Example loop through async javascript -1 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9