Given an array of integers, print to the console the positive numbers, one on each line.
A number n is positive if it is strictly greater than 0.
Example:
Input: nums = [3, -2, 0, 4, -4]
Output (console):
3
4
Note:
You have to print the numbers to the console, your function shouldn't return anything.
Free plan: 30 tutor messages. Premium is unlimited.
Saved
Ctrl + Enter to check