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 14:30
Consider a graph for the equation y= -3x+4. what is the y intercept? a) 4 b) -4 c) 3 d) -3
Answers: 1
question
Mathematics, 21.06.2019 15:00
Ascatterplot is produced to compare the size of a school building to the number of students at that school who play an instrument. there are 12 data points, each representing a different school. the points are widely dispersed on the scatterplot without a pattern of grouping. which statement could be true
Answers: 1
question
Mathematics, 21.06.2019 16:20
Monica build a remote control toy airplane for science project to test the plane she launched it from the top of a building the plane travel a horizontal distance of 50 feet before landing on the ground a quadratic function which models the height of the plane in feet relative to the ground at a horizontal distance of x feet from the building is shown
Answers: 1
question
Mathematics, 21.06.2019 21:30
Find the ratios of the corresponding sides
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
Biology, 02.07.2019 17:00
Questions on the website: 13722362