What output will this method produce if the given input array is (0.0.1.1.1.2.2.3.3.4)
public int test Punction (intl) nums) {
if (nums.length == 0) return 0;
for (int j = 0; j < nums.length; j++) {
if (nums - numsil)
mums: - nums 131:
1
3
O ao
O 6.2
C. 3
O 0.5
Answers
Answered by
7
Answer:
Input : [7, 3, 16, 10]
Output : 3
Number of integers greater than 3
is three.
Input : [-1, -9, -2, -78, 0]
Output : 0
Number of integers greater than 0
is zero.
Explanation:
Similar questions