subject
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:


Challenge

You have been challenged to read a value and create a program that puts the read value

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
What is added to the < meta > tag to describe the encoding type?
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print
Answers: 3
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
A. in packet tracer, only the server-pt device can act as a server. desktop or laptop pcs cannot act as a server. based on your studies so far, explain the client-server model.
Answers: 2
You know the right answer?
Challenge You have been challenged to read a value and create a program that puts the read value in...
Questions
question
World Languages, 08.01.2021 07:50
question
Mathematics, 08.01.2021 07:50
question
Mathematics, 08.01.2021 07:50
question
Mathematics, 08.01.2021 08:00