Posted by : Unknown Sunday, 28 June 2015


class printOdd
{
    public static void main(String args[])
    {
        for(int x=1; x<10; x=x+2)
        {
        System.out.println(x);
        }
    }
}

Output:

1
3
5
7
9

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Translate

Popular Post

Total Pageviews

Blog Archive

- Copyright © Learning Java Program - Powered by Blogger -