// out odd 21, 23, .. 39 class CountUpOdd_20_40 { public static void main(String[] args) { int count = 21; while (count <= 40) { System.out.print(count+" "); count = count + 2; } System.out.println ("\n\n\n"); } }