Exercicio 3 com JOptionPane