Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package exemplosjava;
- import javax.swing.JOptionPane;
- public class EstruturaSelecaoSimples {
- public static void main(String[] args) {
- int numero;
- numero = Integer.parseInt(JOptionPane.showInputDialog("Digite um numero:"));
- if (numero % 2 == 1) {
- JOptionPane.showMessageDialog(null, "O numero é impar");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement