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 18:40
Some boys and girls were asked if they had a pet. one third of the group were boys. there were 20 boys. 20% of the girls had a pet. boys with a pet : girls with a pet = 1 : 5 i need to know how many girls there are.
Answers: 3
question
Mathematics, 21.06.2019 19:30
Write an equation for the function that includes the points (2,100)and (3,100)
Answers: 2
question
Mathematics, 21.06.2019 22:00
Tom drove 206 miles in 3.9 hours. estimate his average speed.
Answers: 2
question
Mathematics, 21.06.2019 23:30
Find the arc length of the semicircle. 7the grade
Answers: 1
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, 04.12.2020 05:00
question
Mathematics, 04.12.2020 05:00
question
Mathematics, 04.12.2020 05:00
question
Mathematics, 04.12.2020 05:00
question
Mathematics, 04.12.2020 05:00
Questions on the website: 13722363