-
Notifications
You must be signed in to change notification settings - Fork 71
/
Main.java
24 lines (18 loc) · 913 Bytes
/
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package aritmetica;
// José Antonio Muñoz Jiménez - 2018 - 2023
import java.util.Arrays;
public class Main {
private static final int NUM1 = 5;
private static final int NUM2 = 2;
private static final int NUM3 = 10;
public static void main (String[] args) {
System.out.println ("Dados los números " + NUM1 + " y " + NUM2 );
System.out.println ("La suma es " + Aritmetica.suma(NUM1, NUM2) );
System.out.println ("La resta es " + Aritmetica.resta(NUM1, NUM2) );
System.out.println ("La multiplicación es " + Aritmetica.multiplicacion(NUM1, NUM2) );
System.out.println ("La división es " + Aritmetica.division(NUM1, NUM2) );
System.out.println ();
System.out.println ("Ordenamos los siguientes números: " + NUM1 + ", " + NUM2 + ", " + NUM3);
System.out.println ("Los números ordenados son: " + Arrays.toString (Utilidades.ordenar(NUM1, NUM2, NUM3))) ;
}
}