For example, if user inputs 5, output: 99999
I know I can use a for loop to string concatenate, and then int the string, but this solutions seems ineffective.
https://stackoverflow.com/questions/65543869/create-n-digit-number-using-just-9s-where-n-is-variable January 03, 2021 at 04:40AM
没有评论:
发表评论