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

PROGRAMMING:Summation of special A-Series sequence

Luz5年前 (2021-05-10)题库465
Given two positive integers $$a $$and $$n $$which are not more than 9, it is required to write a program to find the sum of $$a + AA + AAA + + \ cdots + AA / cdots a $$($$n $$a $$).
###Input format:
Enter positive integers $$a $$and $$n $$that give no more than 9 in one line.
###Output format:
Output in the format of "s = corresponding sum" in one line.
###Input example:
```in
2 3
```
###Output example:
```out
s = 246
```






answer:If there is no answer, please comment