Skip to content

mmojtabakarimi/kotlin-sumApp

Repository files navigation

Please create a small project in Kotlin that contains a function that takes an input string like "one-two-seven-four-nine-zero" and returns a string with the format "1+2+7+4+9+0=23". Then test the function with some possible inputs (but please not use the input from this description), you can do this directly in the main function. It should be possible to pass the digits 0-9. Everything that is not specified you can solve as you like it or as you think it makes sense.

Test 1) "five-One-two-Nine-Three-Zero-seven" 5+1+2+9+3+0+7=27

Test 2) "Six-five-One-two-Nine-Three-Zero-seven" 6+5+1+2+9+3+0+7=33

Test 3) "One-Alll-Four-Three-Zero-seven-Six-1-2-five-Oneone-two@%%-Nine:-Three-Zero-seven" 1+4+3+0+7+6+5+3+0+7=36

About

This is demo app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published