Computer Science, asked by mahijaiswal123, 1 year ago

in java write a program to enter temperature into degree celcius and change it into degree Fahrenheit​

Answers

Answered by shambhavi2807
3

Answer:

import java.util.*;

class Temperature

{

public static void main (String args [ ])

{

Scanner in=new Scanner (System.in)

System.out.println("Enter the temperature in degree Celsius");

double c=in.nextDouble();

double f=(9/5*c)+32;

System.out.println("Temperature in degree Fahrenheit="+f);

}

}

If understood please mark it as brainliest. Thank you.

Similar questions