tg-me.com/java_codings/14
Last Update:
10. Program to Convert Celsius to Fahrenheit.
import java.util.*;
class CelsiustoFahrenheit
{
public static void main(String[] args)
{
double temperature;
Scanner in = new Scanner(System.in);
System.out.println("Enter temperature in Celsius");
temperature = in.nextInt();
temperature = (temperature * 9 / 5.0) + 32;
System.out.println("Temperature in Fahrenheit = " + temperature);
}
}
@java_codings
BY Advance Java π¨βπ»
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Share with your friend now:
tg-me.com/java_codings/14