jueves, 17 de enero de 2013

promedio numeros java consola



/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package frgfg;

/**
 *
 * @author Toshiba
 */
import java.util.*;
import java.io.*;

public class Frgfg {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner recibe = new Scanner(System.in);              
       
        System.out.println("dame el primer numero, por favor!");
       
        int numero1 = recibe.nextInt();
        System.out.println("dame el segundo numero, por favor!");
       
        int numero2 = recibe.nextInt();
       
        int suma= (numero1+numero2)/2;
        if (suma>7)
        {
        System.out.println("Aprobado:"+ suma);
        }
        else
        {
            System.out.println("Perdio nel a;o"+ suma);
        }
       
    }
}

Visualizador de windows predefinido para abrir imagenes

 abrir regedit Equipo\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations nuevas entrada valor de todas...