wap in java to input temperature in Celsius and print its Fahrenheit
(f=1.8*C+32)
Answers
Answered by
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
CBSE BOARD XII,
29 days ago
English,
29 days ago
Math,
1 month ago
Math,
8 months ago
Physics,
8 months ago