7 kyu
Square Every Digit
127,216 of 335,869MysteriousMagenta
Description:
Welcome. In this kata, you are asked to square every digit of a number and concatenate them.
For example, if we run 9119 through the function, 811181 will come out, because 92 is 81 and 12 is 1. (81-1-1-81)
Example #2: An input of 765 will/should return 493625 because 72 is 49, 62 is 36, and 52 is 25. (49-36-25)
Note: The function accepts an integer and returns an integer.
Happy Coding!
Mathematics
Fundamentals
Similar Kata:
Stats:
Created | Nov 20, 2014 |
Published | Nov 20, 2014 |
Warriors Trained | 557754 |
Total Skips | 42013 |
Total Code Submissions | 916792 |
Total Times Completed | 335869 |
Python Completions | 127216 |
Java Completions | 32315 |
JavaScript Completions | 133265 |
Ruby Completions | 9943 |
Haskell Completions | 1757 |
C# Completions | 17410 |
Crystal Completions | 81 |
TypeScript Completions | 6362 |
Elm Completions | 110 |
Julia Completions | 152 |
Prolog Completions | 54 |
Swift Completions | 1753 |
Elixir Completions | 283 |
C Completions | 1930 |
NASM Completions | 16 |
COBOL Completions | 14 |
C++ Completions | 6678 |
R Completions | 265 |
CoffeeScript Completions | 24 |
PHP Completions | 2745 |
F# Completions | 64 |
D Completions | 17 |
Rust Completions | 1720 |
Scala Completions | 266 |
Groovy Completions | 13 |
Perl Completions | 5 |
Total Stars | 3031 |
% of votes with a positive feedback rating | 90% of 26914 |
Total "Very Satisfied" Votes | 22095 |
Total "Somewhat Satisfied" Votes | 4451 |
Total "Not Satisfied" Votes | 368 |