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

PROGRAMMING:4.17 - displays the second power of integer values from 1 to n

Luz5年前 (2021-05-10)题库405
Write a program to show the second power of integer values from 1 to n as follows.
-----From exercise 4-17
```
The value of n is 3
The second power of 1 is 1
The second power of 2 is 4
The power of 3 is 9
```
###Input example:
```in
three
```
###Output example:
```out
The value of N: the power of 1 is 1
The second power of 2 is 4
The power of 3 is 9
```







answer:If there is no answer, please comment