Write a JAVA program to store the temperature in Celsius and convert it into Fahrenheit using the following formula.
Fahrenheit= (Celsius*9/5) +32
DO NOT USE ANY INPUT METHOD
Answers
Answered by
2
Answer
JAVA
1 public class temperature.
2 {
3 public static void main (String args[])
4 { float Fahrenheit, Celsius;
5 Celsius= 13;
6 Fahrenheit =((Celsius*9)/5)+32;
7 System.out.println("Temperature in Fahrenheit is: "+Fahrenheit);
8 }}
Similar questions
Physics,
8 months ago