Given array of integers, and we have to all positive numbers.
To find out positive numbers from array: we check each number, if number is greater than or equal to zero then it will be a positive number. We traverse array of integer, if it is positive number then we will print that number of console.
For example we have list of integers:
18, -13, 23, -12, 27
18 is a positive number because it is greater than equal to zero.
-13 is not a positive number because it is not greater than equal to zero.
23 is a positive number because it is greater than equal to zero.
-12 is not a positive number because it is not greater than equal to zero.
27 is a positive number because it is greater than equal to zero.
Consider the example:
Output