odalysesquermon
odalysesquermon
06.05.2020 • 
Mathematics

PLEASE ANSWER SOON. WILL MARK BRAINLIEST
Consider the following algorithm:

Step 1: Input a positive integer N.

Step 2: Begin with sum equal to 0 and n equal to 1.

Step 3: Find the n'th odd number, which is 2n-1, and increase sum by this odd number.

Step 4: Increase n by 1.

Step 5: If n > N, then stop and output sum. Otherwise, go back to step 3.

What number does this algorithm output if we input N = 6?

Solved
Show answers

Ask an AI advisor a question