in java write a program to enter temperature into degree celcius and change it into degree Fahrenheit
Answers
Answered by
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
Social Sciences,
6 months ago
Math,
6 months ago
Biology,
1 year ago
Math,
1 year ago
Math,
1 year ago