Computer Science, asked by babita1148, 10 months ago

write a Java program to convert temperature conversion ​

Answers

Answered by Anonymous
6

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....

Answered by FnaticUjjaWaL
3

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.

Similar questions