60 475
Assignments Done
98,1%
Successfully Done
In April 2018

Answer to Question #858 in C++ for benji

Question #858
Describe an algorithm that counts for the number of negatives from a list of numbers.
Expert's answer
i := 0, s := 0
While i < Length of List
if List[i] < 0 then s := s + 1
i := i+1
End While
Output s - Result

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions