Share
Explore BrainMass

Writing Syntax

1. Write the syntax (one line) to declare an int array with 7 values which are all 10.

2. Write the syntax using a loop to print out every odd value from the array above.

Solution Preview

1. int[] array = { 10, 10, 10, 10, 10, 10, 10};

2.
// ...

Solution Summary

This solution provides guidelines on writing the syntax to declare an int array and a syntax using a loop.

$2.19