Question: Convert the number Report Given a number having ten digits, convert it to a string following the below - mentioned rules. Rules for conversion: Separate
Convert the number
Report
Given a number having ten digits, convert it to a string following the belowmentioned rules.
Rules for conversion:
Separate the number into a set of fourthreethree digits
Use the following prefixes for successive digits
Single numbers: just read them separately.
Two Consecutive numbers: double
Three Consecutive numbers: triple
Four Consecutive numbers: quadruple
Input
The first line of input is a string of ten digits.
Output
The output should print the given number in a humanreadable format.
Refer to the sample input and output.
Explanation
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
