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
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
Comments
Leave a comment