Formula | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Formula

Given a digit number say 123, how can I get the output sum in formula form, eg 1+2+3=6 as opposed to just 6.Also what if I want to exclude 2 in the calculation, how do I do it to output 1+3=4, lastly what if I want to multiply the 3 by 2,eg 1+2+(3*2)=9

20th Feb 2022, 11:25 AM
Nahla
2 Answers
+ 2
What have you tried this far, show me your tryout code?
20th Feb 2022, 11:48 AM
Ipang
0
You should show us your attempt because this is will help u to improve your problem solving Show the following code , it's like what u want https://code.sololearn.com/c55u0aAnz7on/?ref=app
20th Feb 2022, 12:11 PM
Muhammad Galhoum
Muhammad Galhoum - avatar