Multiplying Digits Easy

+50 PTS

Before you start the test, check out our tutorial challenge

  • TYPE CODE PRACTICE CHALLENGE
  • LANGUAGES C++, C#, JAVA, JAVASCRIPT AND 6 MORE
    LANGUAGES C++, C#, JAVA, JAVASCRIPT, PHP, PYTHON, PYTHON2, RUBY, SWIFT, TYPESCRIPT
  • TIME ~10MIN

Multiplying Digits

Challenge outline

Hello and welcome to the challenge!


Write a code that receives the string of digits and returns this string with each digit repeated a number of times equals to its value.

Input

  • string with digits

Output

  • transformed string

Constraints

  • 1 < length of the given string < 100


You can solve this programming contest in C++, C#, Ruby, JavaScript, Python and many other languages. If you want, you can also take part in other December 2019 competitions. Below you can find some of them:



Have fun and good luck! :)