I've tried doing it but it doesnt run
The array of real numbers is set.
a) To delete from the array positive elements.
b) To calculate the sum of negative elements in the array.
c) To calculate minimum of positive elements in the array.
solve using functions
Ese
0
Newbie Poster
Recommended Answers
Jump to PostI've tried doing it but it doesnt run
Why doesn't it run?
Show us code?
Jump to Postok -- you start with some input and checking -- kind of ok -- Note that you have not checked if the user inputs that he wants 50 numbers... you program would break.
After than finding the min positive value: That is a bit of a mess of logic/coding etc. …
All 5 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
Ese
0
Newbie Poster
Ese
0
Newbie Poster
Ese
0
Newbie Poster
StuXYZ
731
Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.