C Program To Find Sum of Squares of Digits using Recursion
Satish B
https://technotip.com/8158/c-program-to-find-sum-of-squares-of-digits-using-recursion/
Write a C program to find sum of squares of digits of a positive integer number input by the user, using recursive function.
Example: If user inputs num value as 123. Then we fetch the individual digits present in 123 i.e., 3, 2 and 1, square it and add it to get the final result.
i.e., (3 x 3) + (2 x 2) + (1 x 1) = 14.
So, sum of squares of digits of 123 is 14.
C Programming Interview / Viva Q&A List https://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert https://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ ... https://www.youtube.com/watch?v=7YaJ2pIkzKc
2020-07-21
0.0 LBC
Copyrighted (contact publisher)
18875219 Bytes