Sum of digits in a number
Write an application that prompts for and reads a String followed by an integer then returns a string made of x repetitions of the last x characters of the string.
input data: tester 5 output: esteresteresteresterester
View Java Solution
input data: hello 3 output: llollollo