-->
当前位置:首页 > 题库

PROGRAMMING:a+aa+aaa+..

Luz5年前 (2021-05-10)题库516
Find the value of Sn = a + AA + AAA +... + AA... A, where a is a number. For example: 2 + 22 + 222 + 2222 (at this time n = 4), n is input by the keyboard.
###Input format:
Type in the order of "a = x, n = y" in one line. Where x and y are positive integers.
###Output format:
Output the result directly without any additional characters.
###Input example:
```in
a=2,n=4
```
###Output example:
```out
two thousand four hundred and sixty-eight
```






answer:If there is no answer, please comment