0

I want to out put please help

sum programme a='''1,2,3,4,5 6,7,8,9,10 11,12,13,14''' ____________________ out put 18,21,24,27,15

1st Dec 2018, 7:58 AM
Harish Chandan Chavan
3 Answers
+ 12
● make group of elemnets having index with a gap of 5 . like a[0], a[5], a[10] will be summed up //x=0 then a[1], a[6], a[11] will be summed up //x=1 & so on ● run outer loop for (total no. of elements)/(no. of rows) //here 5 (increasing value of a by 1 each time loop runs & value of a will be assigned to x) ● run inner loop for (total no. of elements)/(no. Of columns) //here 3 (increasing value of x by 5 in each iteration)
1st Dec 2018, 8:12 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 3
Harish Chandan Chavan Please, SL its a place where you can get help but dont expect that someone make your homeworks for you... Gaurav Agrawal have given you a procedure for get it work, try to develop it and if you have problem, post your attempt
1st Dec 2018, 8:44 AM
KrOW
KrOW - avatar
0
could you please send me code
1st Dec 2018, 8:15 AM
Harish Chandan Chavan