domingo, 6 de junho de 2021

basico celsius - frenheit programa 01 lista 01

 package projeto14_04_2021;

import javax.swing.JOptionPane;

public class Projeto14_04_2021 {


    public static void main(String[] args) {

      

     String x = JOptionPane.showInputDialog("Digite Graus C:");

     Double c = Double.parseDouble(x);

     Double f = (9*c + 160)/5;

     JOptionPane.showMessageDialog(null,"em farenthiet:"+f);

    }

    

}