javascript celcius to farenheit
const celsiusToFahrenheit = celsius => celsius * 9/5 + 32;
const fahrenheitToCelsius = fahrenheit => (fahrenheit - 32) * 5/9;
// Examples
celsiusToFahrenheit(15); // 59
fahrenheitToCelsius(59); // 15
javascript celcius to farenheit
const celsiusToFahrenheit = celsius => celsius * 9/5 + 32;
const fahrenheitToCelsius = fahrenheit => (fahrenheit - 32) * 5/9;
// Examples
celsiusToFahrenheit(15); // 59
fahrenheitToCelsius(59); // 15
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);
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us