The empty space should be fill in with recursion and loops G

The empty space should be fill in with recursion and loops

Given the following code fragments, drag and drop the appropriate terminology for how a repetition is accomplished. Repetition is achieved by writing as shown in the following code fragment: double doubleArr[] = {2.0, 4.0}; double result = 0; for (int ix=0; ix

Solution

The first option is using loops

as because the for loop is been used to achive looping

The second option is using recursion.

as because the function call itself is known to be called as recursion loop.

The empty space should be fill in with recursion and loops Given the following code fragments, drag and drop the appropriate terminology for how a repetition is

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site