Write a program that takes a number as input and repeats each digit of the number as many times as the digit itself. The digits should appear in sequence.
Input
Enter the number: 1402
Output
1444422
Good Luck And Happy Coding