# Answer to Question #36948 in C++ for Dharmendra Kumar

Question #36948

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)

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)

Expert's answer

#### Not answered

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment