why it is not possible to include index [0] in the for loop.is it necessary to mention it output the loop.
Cin>>a[0]; cumSum[0]=a[0];
hello @Jainish-Patel-1007094602980100
we can include index 0 in our loop. but then we need to add some if statements to handle some corner cases.