/**
 * Create a while loop
 */
public class While
{
    public static void main(String[ ] args)
    {
        int max;
        if (args.length == 0)                         //if no cmd line args
            max = 100;                                //  max = 100
        else                                          //otherwise
            max = Integer.parseInt(args[0]);          //  max = arg entered

        int numb = 1;
        while(numb <= max)                            //create a for loop
        {
            System.out.println(numb);
            numb++;
        }
    }
}