Online Code Practice Launch

This week Online Code Practice was launched. In the coming months more problems will be added, and greater detailed content is planned to develop a learn-and-do educational environment. Give it a try, and check back to see what’s new.

Published
Categorized as Blog

Print Integer Array

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.

Published
Categorized as Arrays, 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-

Published
Categorized as CSCD, Shapes

Star Square

Write for loops to produce the following output: ***** ***** ***** *****

Published
Categorized as CSCD, Shapes

Add to Four

Write code that will add numbers up to 4, then print the Integer.

Published
Categorized as CSCD, Math