write a Java program to convert temperature conversion
Answers
Answer:
hiii
your answer is here!
Explanation:
import java.util.*;
class FahrenheitToCelsius {
public static void main(String[]args) {
float temperature;
Scanner in = newScanner(System.in);
System.out.println("Enter temperature in Fahrenheit");
temperature = in.nextInt();
temperature = ((temperature -32)*5)/9;
System.out.println("temperature in Celsius = " + temperature);
hope it helps you....
import java.util.*;
class temperature
{
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
int f,c;
while(in.hasNextDouble())
{
System.out.println("Enter temperature in
Fahrenheit");
f=in.nextDouble();
c=((f-32)*5)/9;
System.out.println("Celsius" +c);
}
}
}
Plz Brother mark it as Brainliest Answer.