Given array of intergers,print the sum of elements sqaring/cubing as per the power of their indices.
//answer= sum=sum+a[i]^i;
eg:input:{2,3,5}
Output:29
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
1 Answer