as

as
mail@pastecode.io avatar
unknown
java
a year ago
469 B
5
Indexable
Never
 public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        String number=input.nextLine();
        char[] num=number.toCharArray();
        for(int i=0;i<num.length;i++)
        {
            System.out.print(num[i]+" :");
            for (int j = 0;j<Character.getNumericValue(num[i]);j++)
            {
                System.out.print(num[i]);
            }
            System.out.println();
        }

    }