Print odd number using for loop
public class Printoddnumber { public static void main(String[] args) { int x;/*from w w w . j a va 2s .c om*/ for (int i =1 ; i<10; i=i+2) { System.out.println(i); } } }