Question: Given an integer array C of size P , write a C + + program to sort the array C in ascending order based on
Given an integer array of size write a program to sort the array in ascending order based on the sum of the squares of the digits of its elements. If two or more elements have the same sum of the squares of their digits, print "IMPOSSIBLE".
EXAMPLE:
IF INPUT OUTPUT:
IF INPUT OUTPUT: IMPOSSIBLE
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
