Print an integer array. The output from the array of 4 integer elements should be: 1 2 3 4 The numbers must be on new lines with no spaces.
Category: CSCD
Recursive GCD
Write a recursive GCD solution that uses the static gcd() helper method and prints the number 15 as the result.
Print Design
Write code that produces the following output. Use nested for loops to capture the structure of the figure. —–1—– —-333—- —55555— –7777777– -999999999-
Star Square
Write for loops to produce the following output: ***** ***** ***** *****
Add to Four
Write code that will add numbers up to 4, then print the Integer.