convert 100.4 f to celsius. calculate and print equivalent celsius temperature. write a program
Answers
Answer:
Explanation:
WRITE THE FOLLOWING JAVA PROGRAMME---------------------------------------------
package com.javabrahman.generaljava;
import java.util.Scanner;
public class FahrenheitToCelsius {
public static void main(String args[]){
System.out.print("Enter the temperature in Fahrenheit: ");
Scanner scanner=new Scanner(System.in);
float fahrenheit=scanner.nextFloat();
float celsius=(fahrenheit-32)*5/9;
System.out.println("Temperature in Celsius: "+celsius);
}
}
HOPE THIS HELPS✌️
#BEBRAINLY #LEARNMORE
I AM A COMPUTER PROGRAMMER, ETHICAL HACKER, AND I KNOW JAVA, CSS++, HTML, J QUERY AND PYTHON
PLZ MARK AS THE BRAINLIEST
import java.util.*;
public class Convert
{
public static void main (String args []);
{
float f = 100.4 , c;
c = f*32/9;
System.out.println("Temperature in Celsius = " +c);
}
}