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

More By Author:

Check out these other kata created by MysteriousMagenta

Stats:

CreatedNov 20, 2014
PublishedNov 20, 2014
Warriors Trained557754
Total Skips42013
Total Code Submissions916792
Total Times Completed335869
Python Completions127216
Java Completions32315
JavaScript Completions133265
Ruby Completions9943
Haskell Completions1757
C# Completions17410
Crystal Completions81
TypeScript Completions6362
Elm Completions110
Julia Completions152
Prolog Completions54
Swift Completions1753
Elixir Completions283
C Completions1930
NASM Completions16
COBOL Completions14
C++ Completions6678
R Completions265
CoffeeScript Completions24
PHP Completions2745
F# Completions64
D Completions17
Rust Completions1720
Scala Completions266
Groovy Completions13
Perl Completions5
Total Stars3031
% of votes with a positive feedback rating90% of 26914
Total "Very Satisfied" Votes22095
Total "Somewhat Satisfied" Votes4451
Total "Not Satisfied" Votes368
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