the value of i is zero when the first loop runs then what should be the value of CumSum[i-1]
@anonymous43 when i==0 then cumsum[i]=a[i] only