Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Converting Fahrenheit to Celsius.
- *
- * @Michelle
- * @9/12/16
- */
- public class fahrenheittocelsius
- {
- public static void main (String[] args)
- {
- double fahrenheit = 29;
- double celsius = 5.0/9.0 * (fahrenheit - 32);
- System.out.print(fahrenheit + " degrees Fahrenheit is equal to " + celsius + " degrees Celsius.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment