Assume the int variables i and result have been declared but not initialized . Write a for loop header, i.e. something of the form

Assume the int variables i and result have been declared but not initialized . Write a for loop header, i.e. something of the form

LANGUAGE: JAVA

CHALLENGE:

Assume the int variables i and result have been declared but not initialized . Write a for loop header, i.e. something of the form

for ( . . . )
for the following loop body :

result = result * i;
When the loop terminates , result should hold the product of the odd numbers between 10 and 20.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level