In a one- dimensional array consisting of n real elements, calculate: | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

In a one- dimensional array consisting of n real elements, calculate:

The sum of elements located between the first and last negative elements. Fill with zeros all elements that do not exceed one

13th Apr 2022, 11:14 AM
Gulnur
3 Answers
+ 2
Gulnur , should the sum include the first and the last negative elements?
13th Apr 2022, 4:51 PM
Lothar
Lothar - avatar
0
Lothar yes, please help me
13th Apr 2022, 4:57 PM
Gulnur