Q: Write a C++ Program to input an integer number. Calculate the sum of squares of digits of this number. For example, if given number is 123 then answer will be Sum squares of digits = 14 because 12+22+32 = 1+4+9 = 14. C++ Program to Calculate sum of squares of digits of given number C++ Code of Sum of Squares of Digits of a given number Program /* Program to input a number, then display sum of squares of its digits. (c) Www.EasyCppProgramming.Blogspot.Com */ #include #include #include void main() { int num, temp, sum=0, r, q; clrscr(); cout<>num; temp = num; while ( temp>0 ) { q = temp/10; r = temp % 10; sum = sum + ( r * r); temp = q; } cout<0) becomes false and loop terminates. 11. Therefore display the answer sum of squares of digits of number 123 = 14 C++ Program to Calculate sum of squares of digits of given number execution /* Program to input a number, then display sum squares of its digits. (c) Www.EasyCppProgramming.Blogspot.Com */ #include // include header files #include void main() { int num, temp, sum=0, r, q; clrscr(); cout<>num; // input number temp = num; // copy number into temp variable while ( temp>0 ) // loop while temp is greater than zero { q = temp/10; // calculate quotient = temp number / 10, if num is 123 then q=12 r = temp % 10; // calculate remainder r = 123 % 10, r = 3 sum = sum + ( r * r ); // sum = 0 + 3x3 =0+9 // so square of last digit 3 of 123 is added in sum variable temp = q; // set next time dividend temp=12 } cout<