7 kyu
Square Every Digit
125,074 of 331,206MysteriousMagenta
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 | 550711 |
Total Skips | 41643 |
Total Code Submissions | 906705 |
Total Times Completed | 331206 |
Python Completions | 125074 |
Java Completions | 31974 |
JavaScript Completions | 131826 |
Ruby Completions | 9910 |
Haskell Completions | 1741 |
C# Completions | 17160 |
Crystal Completions | 81 |
TypeScript Completions | 6226 |
Elm Completions | 109 |
Julia Completions | 152 |
Prolog Completions | 54 |
Swift Completions | 1721 |
Elixir Completions | 280 |
C Completions | 1882 |
NASM Completions | 16 |
COBOL Completions | 14 |
C++ Completions | 6445 |
R Completions | 258 |
CoffeeScript Completions | 24 |
PHP Completions | 2674 |
F# Completions | 62 |
D Completions | 17 |
Rust Completions | 1656 |
Scala Completions | 257 |
Groovy Completions | 11 |
Total Stars | 3003 |
% of votes with a positive feedback rating | 90% of 26755 |
Total "Very Satisfied" Votes | 21963 |
Total "Somewhat Satisfied" Votes | 4427 |
Total "Not Satisfied" Votes | 365 |