أحـمـد ظـافـر
مشرف مُتألق سابق
// Title:Celcius2Fahrenheit.java
// Deion: A program to convert from Celcius temperature to Fahrenheit temperature. public class Celcius2Fahrenheit { public static void main(String[] args) { double C = Double.parseDouble (args [0] ) ; char CelciusTemprature = 'C' ; System.out.println( '\n' + "\t\t"+ " -- convert from Celcius to Fahrenheit === " + '\n'); System.out.println(" CELCIUS TEMPERATURE WAS = " + C + " °C" ); System.out.println('\n'+" SO "+'\n'); // to convert from Celcius to Fahrenheit use this formula ( F = ((9/8) * C + 32 ) ) double F = 0.0; F = ((9.0 / 5.0)* C) + 32 ; //F = Fahrenheit System.out.println(" FAHRENHEIT TEMPERATURE IS = " + F + " °F" ); } }