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
English,
1 month ago
Computer Science,
1 month ago
Math,
1 month ago
History,
2 months ago
Physics,
9 months ago