- 1

Help please with this task

find the sum of array elements located after the maximum element. and array elements facing the maximum print in reverse order

1st Apr 2018, 11:12 AM
zama
3 ответов
0
A simple solution is to find the index of max number in the first iteration, then sum all the elements after it and print the numbers before it in reverse order.
1st Apr 2018, 12:20 PM
Ravi Chandra Enaganti
Ravi Chandra Enaganti - avatar
0
thank you
1st Apr 2018, 6:35 PM
zama
9th Apr 2018, 9:30 AM
Manuchehrkhon
Manuchehrkhon - avatar