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

More By Author:

Check out these other kata created by MysteriousMagenta

Stats:

CreatedNov 20, 2014
PublishedNov 20, 2014
Warriors Trained550711
Total Skips41643
Total Code Submissions906705
Total Times Completed331206
Python Completions125074
Java Completions31974
JavaScript Completions131826
Ruby Completions9910
Haskell Completions1741
C# Completions17160
Crystal Completions81
TypeScript Completions6226
Elm Completions109
Julia Completions152
Prolog Completions54
Swift Completions1721
Elixir Completions280
C Completions1882
NASM Completions16
COBOL Completions14
C++ Completions6445
R Completions258
CoffeeScript Completions24
PHP Completions2674
F# Completions62
D Completions17
Rust Completions1656
Scala Completions257
Groovy Completions11
Total Stars3003
% of votes with a positive feedback rating90% of 26755
Total "Very Satisfied" Votes21963
Total "Somewhat Satisfied" Votes4427
Total "Not Satisfied" Votes365
Ad
Contributors
  • MysteriousMagenta Avatar
  • jhoffner Avatar
  • bmgreatness Avatar
  • WilliamDo Avatar
  • Unnamed Avatar
  • yantonov Avatar
  • GiacomoSorbi Avatar
  • meschi Avatar
  • brunolm Avatar
  • Chrono79 Avatar
  • kleidemos Avatar
  • B1ts Avatar
  • ekamaks Avatar
  • Voile Avatar
  • Souzooka Avatar
  • hobovsky Avatar
  • ConstantineGochev Avatar
  • uniapi Avatar
  • stellartux Avatar
  • trashy_incel Avatar
  • username0 Avatar
  • user8436785 Avatar
  • OshuaJay Avatar
  • ejini战神 Avatar
  • MobulaKuhlii Avatar
  • akar-0 Avatar
  • pastre Avatar
  • tobeannouncd Avatar
  • FranzMartyn Avatar
  • anusha.j Avatar
  • KayleighWasTaken Avatar
Ad