Skip to main content

converson temperatura Java

import java.util.*;
public class FuncionDeCentigrados_a_Fahrenheit {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int numero, temperatura=0, fahrenheit=0;
 
        System.out.print("Temperatura en Grados Centigrados: ");
        temperatura=sc.nextInt();
        fahrenheit=(temperatura*9)/5+32;
        System.out.println("Temperatura en Grados Fahrenheit: "+fahrenheit);
    }
}
 
 
Fuente 

Comments

chocobo said…
http://soloinformaticayalgomas.blogspot.com/2011/04/generador-de-clases.html

generador de clases

Popular posts from this blog

boleta, cliente, nombre en Java

import java.util.ArrayList; public class Cliente { private String nombre; private ArrayList boletas; public Cliente(String nombre) { this.nombre = nombre; this.boletas = new ArrayList(); } public String getNombre() { return this.nombre; } public void agregarBoleta(Boleta boleta) { boletas.add(boleta); } public void imprimirHistorial() { Boleta b; System.out.println("Nombre: " + nombre); for (int i=0; i b = (Boleta)boletas.get(i); b.imprimir(); } } } public class Articulo { private String descripcion; private int stock; private int precio; public Articulo(String descripcion,int stock,int precio){ this.descripcion = descripcion; this.stock = stock; this.precio = precio; } public String getDescripcion() { return this.descripcion; } public int getStock() { return this.stock; } public int getPrecio() { return this.precio; } } import java.util.ArrayList; public class Boleta { private String fecha; private int total; private ArrayList ar...

Voltimetro en VHDL

library IEEE; use IEEE.std_logic_1164.all; library work; use work.Estructuras_de_Datos.all; entity Voltimetro is         port (  clock: in std_logic;                         d : in std_logic;                         not_q: out std_logic;                                                  hs,vs: out std_logic;                         r,g,b: out std_logic                                                                      );           ...

Hacker Test

_________________________________________________________________________________ Un pequeño juego de 20 niveles el cual te ayudara con tus habilidades en seguridad de php, javascript, HTML y graficos. lo recomiendo muy bueno para pasar un buen rato para aquellos que gustarian ser hackers aqui podria aprender cosas basicas. HackerTest COMENTEN !!!!