EJERCICIO "12"
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sumita;
import java.util.*;
/**
*
* @author GATO
*/
public class SUMITA {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner leer=new Scanner(System.in);
int a, b, c;
System.out.println("ingrese el primer numero:");
a=leer.nextInt();
System.out.println("ingrese el segundo numero:");
b=leer.nextInt();
c=a+b;
System.out.println("La suma es =" +c);
if (c>100){
System.out.println("eres lo maximo");
}
else
{
System.out.println("fracaso");
}
}
}
No hay comentarios:
Publicar un comentario