Write a program in Java to convert the temperature from Celsius to Fahrenheit. [ formula- (°C X 9/5)+32=°F].
Answers
Answered by
13
Explanation:
import java.util.Scanner;
public class temperature
{
public static void main (String args[])
{
float Fahrenheit, Celsius;
Scanner sc=new Scanner(System.in);
System.out.println("Enter temprature in celsius:");
Celsius= sc.nextFloat ();
Fahrenheit =((Celsius*9)/5)+32;
System.out.println("Temperature in Fahrenheit is: "+Fahrenheit);
}}
plz mark brainliest. . follow for every answer instantly
Similar questions