13-Aquamarine
November 5, 2025
Solved
sum and conditions of values of a vector and
- November 5, 2025
- 3 replies
- 471 views
Hello community, I have this problem:
- "How could I program it to sum 3 consecutive values in a vector (m), with the condition that the sum is performed only when there are exactly 3 consecutive values; otherwise, the result should be an empty string ('')."
- "What I’m trying to do here is: in vector (a), if there is even one false, the result should be false; but if all values are true, the result should be true."




