package ejemplo1;
import java.util.Scanner;
public class Ejemplo1 {
public static void main(String[] args) {
Scanner en = new Scanner(System.in);
System.out.println("Digite un numero: ");
int a = en.nextInt();
System.out.println("Digite otro numero: ");
int b = en.nextInt();
int c= a+b;
System.out.println("La suma es " + c);
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.