This is a simple code I made. Can somebody tell me how to find the time complexity of this code?
Here is the code:
for(i = 0; i< n; i++) for(j =1; sum = a[0]; j <= i; j++) sum += a[j]; system.out.println (“sum of the array is” + sum);
Thank you....