°F to °C: [°C] = ([°F] − 32) × 5⁄9
°C to °F: [°F] = [°C] × 1.8 + 32
Chat with our AI personalities
CLS INPUT "Enter degrees in Celsius:";c INPUT "Enter degrees in Fahrenheit:";f a=(c*1.8)+32 b=5/9(f-32) PRINT c;"degree Celsius=" a;"degree Fahrenheit" PRINT f;"degree Fahrenheit=" b;"degree Celsius" end
Celsius. It is the metric version of temp.
import java.util.Scanner; public class Fahrenheit { public static void main(String args[]) { Scanner s=new Scanner(System.in); System.out.println("Enter the temperature in Celsius scale"); double f= s.nextDouble(); double c; c=(f-32)/1.8; System.out.println("Fahrenheit"); System.out.println( f); } }
Conversion from Celsius to Fahrenheit is done in three steps: 1. Multiply value in degrees Celsius by 9. 2. Divide result of step 1 by 5. 3. Add 32 to result of step 2. Conversion formula: [°F] = [°C] * 9 / 5 + 32 = 58 * 9 / 5 + 32 = 136.4 °F
Voltage measures electrical tension, Celsius measures temperature.