You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Vanya got an important task — he should enumerate the books in the library and label each book with its number. Each of the n books should be assigned with a number from 1 to n. Naturally, each book should have a unique number.
// Vanya wants to know how many digits he will have to write down as he labels the books. Your task is to help him!
// Example
// For n = 13, the output should be
// VanyaAndBook1s(n) = 17.
// The books should be labeled with numbers 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, which totals to 17 digits.