Skip to content

Instantly share code, notes, and snippets.

@GuilhermeManzano
Last active September 15, 2020 00:42
Show Gist options
  • Save GuilhermeManzano/0a3de69c303b43420869dad6b30e70a5 to your computer and use it in GitHub Desktop.
Save GuilhermeManzano/0a3de69c303b43420869dad6b30e70a5 to your computer and use it in GitHub Desktop.
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