Computer Science, asked by binochantd6245, 1 day ago

Given array arr[] of integer number

Answers

Answered by aasthamandal
1

Explanation:

for (int i = 0; i < A. length - 1; i++)

for (int j = i + 1; j < A. length; j++)

if (A[i] + A[j] == target)

System. out. println("Pair found (" + A[i] + ", " + A[j] + ")");

System. out. ...

public static void main (String[] args)

int[] A = { 8, 7, 2, 5, 3, 1 };

Similar questions