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

10 commands you should master when working with the Cisco IOS

The Cisco IOS provides thousands of commands, and configuring it can be challenging. Here are 10 commands you need to know, inside and out, when using the Cisco IOS. #1: The “?” It may seem entirely too obvious that you should know how to type  ?  to ask for help when using the Cisco IOS. However, the Cisco IOS is completely different from other operating systems when it comes to using the question mark (help key). As the IOS is a command-line operating system with thousands of possible commands and parameters, using the ? can save your day. You can use the command in many ways. First, use it when you don’t know what command to type. For example, type  ?  at the command line for a list of all possible commands. You can also use ? when you don’t know what a command’s next parameter should be. For example, you might type show ip ?  If the router requires no other parameters for the command, the router will offer CR as the only option. Finally, use ? to se...

Multimetro ( codigo ) vhdl

library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; entity Multimetro is port( clk: in std_logic; tst: inout std_logic_vector (3 downto 0); display: out std_logic_vector (7 downto 0):="00000000"; leds, anodos: out std_logic_vector (3 downto 0):="0000"); end Multimetro; architecture Behavioral of Multimetro is signal barrido: std_logic_vector (1 downto 0):="00"; signal anodo: std_logic_vector (3 downto 0):="0000"; signal contador: std_logic_vector (3 downto 0):="0000"; signal disp,disp1,disp2,disp3: std_logic_vector (7 downto 0):="00000010"; signal x,y,z,w: std_logic_vector (3 downto 0):="0000"; begin process(clk) begin if(clk'event and clk='1') then barrido<=barrido+'1'; if contador contador<=contador+'1'; elsif contador>tst then contador<="0000...

Te quiero… pero como amigo

Hasta ahora pensaba que la peor frase que te puede decir una chica es: -’Tenemos que hablar…’. Pero no, nada que ver, la peor frase que te pueden decir es: -’Yo tambien te quiero… pero solo como amigo’. Eso significa que para ella sos el tipo mas simpático del mundo, el que mejor la escucha, el que mas sabe de su vida y sus mas íntimos secretos, el ser humano más extraordinario de la tierra… pero que no va a salir con vos NUNCA. Va a salir con un impresentable, un hijo de puta, un pelotudo que solo quiere culear con ella y cagarla permanentemente. Eso si, cuando el otro se mande una cagada, ella te va a llamar para pedirte consejo. Es como si vas a buscar trabajo y te dicen: -”Señor, es usted la persona idónea para el puesto, el que mejor currículum tiene, el mas preparado… pero no lo vamos a contratar. Vamos a tomar a un incompetente que no sepa hacer nada y se mande una cagada a cada rato. Eso si, cuando se mande una cagada ¿lo podríamos llamar a usted para que nos saque del quilombo...