Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Name:Chris McGlynn
- Date: 27/9/19
- Program how to convert temperature
- */
- public class ConvertTemperature {
- public static void main (String [] args){
- double centigrade=100;
- double fahrenheit= 9/5*centigrade+32;
- System.out.println ("Fahrenheit is equal to "+fahrenheit+(" degrees Fahrenheit"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement