grados centigrados a kelvin y fahrenheit aplicacion

import java.util.Scanner; public class Apligrados { public static void main (String[] args) { Scanner sc=new Scanner (System.in); double gc; // generamos un objeto //heredero de la clase soporte grados grados gradito= new grados(); System.out.print ("teclea los grados centigrados"); gc=sc.nextDouble(); gradito.set_grados(gc); //asina el valor al atributo gcelsius System.out.println("grados C: " +gradito.gcelsius);//invocacion de metodos System.out.println("en fahrenheit: " +gradito.convfahr());//invocacion de metodos System.out.println("en kelvin: " +gradito.convkelvin());//invocacion de metodos }//main }//clase aplicacion

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.