c++ - To print the sum of the squares of the digits of a number. -


to print sum of squares of digits of number.

if digit greater or equal 5 square of digit considered 0.

for example.

5678 sum=0

1467 sum=17

i tried approach not working.. here approachenter image description here


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -