Ejercicio01.java 332 Bytes
Newer Older
Silvia Barrientos committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18


public class Ejercicio01{
    public static void main(String[] args) {
        int valor1 = 12;
        int valor2 = 5;
        suma(valor1, valor2);
    }

    
    public static void suma(int val1, int val2){
        int suma = val1 + val2;
        System.out.printf("La suma de %d + %d es: %d\n", val1, val2, suma);
    }

}