- 3
I need help. Please help me guys.
How to write an algorithm that outputs the first twenty powers of two.Use at least one variable.Recall that a power of two is 2¹, 2², 2³, …
10 Answers
0
Please tag the relevant programming language.
Hint:
* use a loop
* use the exponentiation operator
* output to console
If you need help, please show your code.
+ 1
To solve the task, you need to know
* print()
* exponent operator
* for loop
All these topics will be covered in the Python for Beginners course on sololearn. I suggest you to do the course and then show your own code attempt.
0
👉 MENTION THE PROGRAMMING LANGUAGE
I gave you some hints on how to approach the problem. Please show what you tried so far, so we can see what the issue is (👉SHOW YOUR CODE)
0
You must know which programming language you learn. Mention the PROGRAMMING LANGUAGE.
0
Its python
0
How do you make it
0
Because im writing it on paper, its an assignment.
This is the question.
Write an algorithm that outputs the first twenty powers of two. Use at least one variable. Recall that a power of two is 2¹, 2², 2³, …
0
Show your attempt!
I told you how to approach the problem. If you can't come up with an attempt, the task is too difficult for you at the moment. You need to learn the basics first before you do this task.
- 1
Hey im confused, this is for computer science but i dont know what or how to do it. Please, id appreciate your help. Anyone.
- 1
How tho, i dont know anything, i just know we started using IDLE