+ 1

What is the code for this question

123 is a input (123) *(1*23) *(12*3) *(1*2*3)

14th Sep 2020, 1:34 PM
Meghana Lellaaa
Meghana Lellaaa - avatar
6 Answers
+ 2
Is it Pattern program . Pls clarify your question little bit.
14th Sep 2020, 6:24 PM
AS Raghuvanshi
AS Raghuvanshi - avatar
+ 1
What is your try..? Try first by yourself.. Hint : ndg=(number of digits-1) ** 10 N* (N/ndg+N%ndg); N=N/10 https://www.sololearn.com/discuss/333866/?ref=app
14th Sep 2020, 1:44 PM
Jayakrishna 🇼🇳
0
find out all possible partitions of the string and concatenate each item of each by * put bracketes around every partition concatenate each partition by *
14th Sep 2020, 2:00 PM
Oma Falk
Oma Falk - avatar
0
Add * in between number like above
16th Sep 2020, 1:21 PM
Meghana Lellaaa
Meghana Lellaaa - avatar
0
Meghana Lellaaa Just put it as a string or to multiply? Let's say the input is 12, it prints out (12)*(1*2) or 24?
16th Sep 2020, 2:04 PM
LastSecond959
LastSecond959 - avatar