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

PROGRAMMING:4.9 - alternate the specified number of + and - symbols

Luz5年前 (2021-05-10)题库474
Write a program to alternately display + and - as shown below. The total number is equal to the integer value entered. In addition, when an integer below 0 is entered, nothing is displayed
-----From exercises 4-9
```
Positive integer: 13
+-+-+-+-+-+-+
```
###Input example:
```in
thirteen
```
###Output example:
The corresponding output is given here. For example:
```out
Positive integer:+-+-+-+-+-+-+
```







answer:If there is no answer, please comment