Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 7, 2019 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/f1ef84390e36d14173832ceddc84ff07 to your computer and use it in GitHub Desktop.
Save parzibyte/f1ef84390e36d14173832ceddc84ff07 to your computer and use it in GitHub Desktop.
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