class L18 {
	public static void main(String[] args)  {
		/*
		for(String elm: args) {
			System.out.println(elm);
		}	
		*/
		// Write a program that counts from the number
		// passed in on the command line up to 20.

		int lowerBound = 0;
		if (args.length > 0) {
			lowerBound = Integer.parseInt(args[0]);
		}

		for(int i = lowerBound; i <= 20; i++) {
			System.out.print(i + " ");
		}
		System.out.println();

		favorite();

		int result = sumThree(1,2,3);
		System.out.println("result: " + result);
	}

	// write a methods named favorite that simply prints 
	// to the screen your favorite artist's name.

	static void favorite() {
		System.out.println("Pink Floyd");
	} 

	// write a method named sumThree that takes three integers as 
	// arguments and returns the sum of the three integers.

	static int sumThree(int a, int b, int c) {
		int sum = a + b + c;
		return sum;
	}

}
