1
resposta

Convert Celsius for Fahrenheit

package br.com.praticandoJava.ex4;

public class ConverteTemperatura {
    public static void main(String[] args) {
        int celsius = 20;

        double fahrenheit =(double)(celsius * 9 / 5) + 32;
        System.out.println("A temperatura em graus Fahrenheit é: " + fahrenheit);
    }
}
1 resposta

Boa João!