Write a Java program to input temperature in Celsius convert it into equivalent fahranhiet temperature using the formula .fahranhiet =1.8*celcuis+32.0
Answers
Answered by
0
import java.io.*
class temperature
public static void main(String args[])throwsIOException
{InputStreamReader read=new InputStreamReader(System.in)
BufferedReader in=new BufferedReader(read)
double f, c;
System. out. println("Enter temp in celsius");
c=Double.parseDouble(in.readLine());
f=1.8*(c+32.0);
System. out. println(" temp in fahrenheit="+f);
}
}
Similar questions