Thursday, 13 June 2013

print 1 to 10 numbers in java

import java.io.*;
class simple_print_1to10
{
    public static void main(String args[])
    {
        int i=1;

        while(i>=10)
        {
            System.out.println(""+i);
            i++;
        }

    }
}

No comments: