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²)
4.5m questions
5.8m answers