Answer to Question #36948 in C++ for Dharmendra Kumar
Write a c program that print all sets of six positive integers a1,a2,a3,a4,a5,a6 such that
a1<=a2<=a3<=20
a1<=a4<=a5<=a6<=20
and the sum of all the squares of a1,a2,a3 equals the sum of the squares of a4,a5,a6.
(Hint-generate all possible sums of three squares ,and use a sorting procedure to find duplicates)
0
Answer in progress...
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment