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

PROGRAMMING:C programming experiment 3-3

Luz5年前 (2021-05-10)题库380
Calculate the value of a + AA + AAA + $$... $+ AA $$... $$a (n a), and the values of a and N are entered by the keyboard. A and N are positive integers, and the result of accumulation is defined as double precision real type.
###Input format:
The values of a and N are entered on one line, separated by spaces.
###Output format:
When outputting, the result only retains the integer part and is output in the form of output sample.
###Input example:
```in
2 5
```
###Output example:
The corresponding output is given here. For example:
```out
sum=24690
```







answer:If there is no answer, please comment