Question #246014

given a set of 15 integer numbers that includes both positive and negative values.draw and write an algorithm that will read in the values including zero and the numbers of negative values found in the set. print out yhe counted values


Expert's answer


1 Set counter = 0
2 Set i = 0
3 Read ith number x_i
4 If x_i < 0 Then add 1 to conter
5 Add 1 to i
6 If i < 15 goto step 3
7 Print counter

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!

LATEST TUTORIALS
APPROVED BY CLIENTS