Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ValorMaxim {
- public static final double PRIMER_VALOR = 15.5;
- public static final double SEGON_VALOR = 9.35;
- public static void main (String[] args) {
- if (PRIMER_VALOR >= SEGON_VALOR) {
- System.out.println("El màxim és " + PRIMER_VALOR);
- } else if (PRIMER_VALOR < SEGON_VALOR) {
- System.out.println("El màxim és " + SEGON_VALOR);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement