subject
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

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 13:00
How can we find the measure of an exterior angle if we know the measurement of an interior angle
Answers: 2
question
Mathematics, 21.06.2019 15:00
Which statement best describes the polynomial
Answers: 2
question
Mathematics, 21.06.2019 15:00
What kinds of numbers make up the set of numbers called the real numbers? give examples when you explain a number type. there are a limited set of types of numbers, but an unlimited number of examples of these numbers.
Answers: 3
question
Mathematics, 21.06.2019 21:00
How do i put 3(x+7) in distributive property
Answers: 2
You know the right answer?
You are given an array of integers "array []" and an input "x". you have to find if there are any tw...
Questions
question
Mathematics, 02.12.2020 05:30
question
Mathematics, 02.12.2020 05:30
question
Mathematics, 02.12.2020 05:30
question
Mathematics, 02.12.2020 05:30
question
Mathematics, 02.12.2020 05:30
question
Mathematics, 02.12.2020 05:30
question
Mathematics, 02.12.2020 05:30
Questions on the website: 13722367