Mathematics
Mathematics, 31.07.2019 03:00, miya214

You are given an array of integers "array []" and an input "x". you have to find if there are any two numbers in your array such that the sum of their square equals to x2 . in other words, you have to find out if there is any pair of i, j such that array[i]2 + array[j]2 = x 2 . if there are such pairs, you should print all such (i, j). otherwise print "there are no such pairs". example: array []: 6, -4, 6, 3, 9, 0, -1, -9, 2, 6 x: 5 you have 1 pair: (-4) 2 + (3) 2 = 5 2 so, your output would be corresponding array indices: (1, 3) note: the array size is 10 and you have to get the elements of the array from

answer
Answers: 1

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 22:00, Morehollie9428
Type the correct answer in the box. consider the system of linear equations below. rewrite one of the two equations above in the form ax + by = c, where a, b, and c are constants, so that the sum of the new equation and the unchanged equation from the original system results in an equation in one variable.
Answers: 2
image
Mathematics, 21.06.2019 22:10, XxKaitlynnxX
What is the measure of sty in oo below? 130 310 230 50
Answers: 2
image
Mathematics, 22.06.2019 00:30, aylineorozco836
If m_b=mzd= 43, find mzc so that quadrilateral abcd is a parallelogram o 86 137 o 129 43 description
Answers: 1
image
Mathematics, 22.06.2019 00:30, aspenbaxter201634
Astudent was asked to find the square of 7x+3. the student quickly wrote (7x+3)^3= 49x^2+9. identify the student's error and provide the correct answer.
Answers: 3
Do you know the correct answer?
You are given an array of integers "array []" and an input "x". you have to find if there are any tw...

Questions in other subjects:

Konu
Mathematics, 18.08.2019 00:10
Konu
English, 18.08.2019 00:10