Computers and Technology, 20.06.2021 17:10 Allyf23
Challenge
You have been challenged to read a value and create a program that puts the read value in the first position of an array N[10]. On each subsequent position, place double the value of the previous position. For example, if the value read is 1, the vector values ​​should be 1,2,4,8, and so on. Show the vector next.
Input
Input contains an integer value (V<=50).
Exit
For each position of the vector, write "N[i] = X", where i is the position of the vector and X is the value stored in position i. The first number of the vector N (N[0]) will receive the value of V.
Input Example
1
Output Example
N[0] = 1
N[1] = 2
N[2] = 4
languagem is Python
output example in image:
Answers: 3
Computers and Technology, 22.06.2019 23:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 1
Computers and Technology, 24.06.2019 13:00
Your mom wants to purchase a laptop computer. she said she wants her new computer to be able to play her dvds so she can listen to music and wants to know what type of optical drives will play her disk. which type of drive should she look for?
Answers: 1
Computers and Technology, 24.06.2019 14:00
What are the different components of the cloud architecture?
Answers: 2
Challenge
You have been challenged to read a value and create a program that puts the read value in...
Computers and Technology, 04.11.2021 09:50
Mathematics, 04.11.2021 09:50
Advanced Placement (AP), 04.11.2021 09:50
Physics, 04.11.2021 09:50
Mathematics, 04.11.2021 09:50
Chemistry, 04.11.2021 09:50
English, 04.11.2021 09:50
Mathematics, 04.11.2021 09:50
Mathematics, 04.11.2021 09:50