Last active
September 15, 2020 00:42
-
-
Save GuilhermeManzano/0a3de69c303b43420869dad6b30e70a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package exercicios; | |
public class Temperatura { | |
public static void main(String[] args) { | |
double C, K, F, Re, Ra; | |
C = 2.43; | |
F = C * 1.8 + 32; | |
K = C + 273.15; | |
Ra = C * 1.8 + 32 + 459.67; | |
Re = C * 0.8; | |
System.out.println("A temperatura em Fahrenheit é: " + F); | |
System.out.println("A temperatura em Kelvin é: " + K); | |
System.out.println("A temperatura em Reaumur é: " + Ra); | |
System.out.println("A temperatura em Rankine é: " + Re); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment