Answers for "f to c conversion"

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
0

c program convert fahrenheit to celsius

#include<stdio.h>
 
void main()
{
    float celsius,fahrenheit;
 
    printf("\nEnter temperature in Fahrenheit:");
    scanf("%f",&fahrenheit);
 
   
    celsius=(fahrenheit - 32)*5/9;
    
    printf("\nCelsius = %.3f",celsius); 
}
Posted by: Guest on January-23-2021
13

c to f

let f = c * (9/5) + 32;
let c = (f - 32) * (5/9);
Posted by: Guest on March-31-2021
0

f to c

c = (5* (f - 32)) / 9;
Posted by: Guest on October-17-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language