Isaac H.

asked • 05/23/22

Look at the following algorithm:

Look at the following algorithm:

Input: n: real number

Output: undisclosed

procedure x(n)
t := 1
For i := 3 to n
t := t + n
What is returned by the algorithm on the input 7, i.e. n = 7?

1 Expert Answer


Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.