Computer Science, asked by cutie2567, 1 month ago

wap in java to input temperature in Celsius and print its Fahrenheit

(f=1.8*C+32)​

Answers

Answered by DeblinaDutta
1

Answer:

first input the temperature in Celsius

Explanation:

import java.util.Scanner;

public class temperature

{

public static void main()

{

Scanner in = new Scanner (System.in);

System.out.println("enter temperature in celcius");

int c = in. nextInt();

double f = 1.8 * (c+32);

System.out.println("temperature in Fahrenheit will be = " +f);

}

}

Similar questions