Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. /* Name:Chris McGlynn
  2. Date: 27/9/19
  3. Program how to convert temperature
  4. */
  5.  
  6. public class ConvertTemperature {
  7.  
  8. public static void main (String [] args){
  9.  
  10. double centigrade=100;
  11.  
  12. double fahrenheit= 9/5*centigrade+32;
  13.  
  14. System.out.println ("Fahrenheit is equal to "+fahrenheit+(" degrees Fahrenheit"));
  15.  
  16.  
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement