MCPcopy Create free account
hub / github.com/JerePrograma/FullStackEgg / Ejercicio1

Class Ejercicio1

Etapa2IntroJava/src/eggprojects/Guia2/Ejercicio1.java:8–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6/*Escribir un programa que pida dos números enteros por teclado y calcule la suma de los dos
7El programa deberá después mostrar el resultado de la suma*/
8public class Ejercicio1 {
9 static Scanner leer = new Scanner(System.in);
10 public static void main(String[] args) {
11 System.out.println("Ingrese dos números");
12 int num1 = leer.nextInt();
13 //Definir num Como Entero;
14 //Leer num;
15 //inicialización.
16 int num2 = leer.nextInt();
17 int suma = num1 + num2;
18
19 System.out.println("La suma de los números es: " + suma);
20 }
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected