Answer:
Time the code takes to execute is O(n²)
Step-by-step explanation:
The code forms an arithmetic series using it two loops.
n+(n-1)+(n-2)+........+2+1
=n(n+1)/2
=O(n²)
9.3m questions
12.0m answers