LexarG56

Generation

generate functionFri, 16 Jun 2023

Programa que al digitar dos números, se sumen.

Scanner p = new Scanner(System.in); int n1, n2, suma; System.out.println("Ingrese numero 1: "); n1 = p.nextInt(); System.out.println("Ingrese numero 2: "); n2 = p.nextInt(); suma = n1 + n2; System.out.println("La suma es: " + suma);

Questions about programming?Chat with your personal AI assistant