import javax.swing.JOptionPane; public class Homework { public static void main (String [] args) { String input = JOptionPane.showInputDialog("Enter a number"); int a = 1; int b = Integer.parseInt(input); while (a < b) { if (a % 2 == 1) System.out.print("SOMETHING HERE"); a++; } System.out.println(a); } }