-
-
Save parzibyte/f1ef84390e36d14173832ceddc84ff07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main { | |
public static void main(String[] args) { | |
int numero1 = 50, numero2 = 100; | |
System.out.printf("Número 1: %d. Número 2: %d\n", numero1, numero2); | |
int minimo = Math.min(numero1, numero2); | |
System.out.printf("Minimo: %d\n", minimo); | |
int maximo = Math.max(numero1, numero2); | |
System.out.printf("Máximo: %d\n", maximo); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment