Pascal: Sum Negatives & Replace in 15-Elem Array

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
siahed1
Messages
1
Reaction score
0

Homework Statement



In one-range array of integers calculate the sum of all all negative values and replace these negatives with calculated sum. Length of array - 15 elements. Program must read all elements of array from keyboard.

Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
How would you start?