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

PROGRAMMING:4.7 - displays the power of all 2 less than the input value in ascending order

Luz5年前 (2021-05-10)题库409
Write a program to show all the powers of 2 that are less than the input integer in ascending order
(if there is a digital display, the line ends with a new line; Otherwise, do not wrap)
-----From exercises 4-7
```
Please enter an integer: 19
2 4 8 16
```
###Input example:
```in
nineteen
```
###Output example:
```out
Please enter an integer: 2 4 8 16
```







answer:If there is no answer, please comment