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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:30, tfaulk2884
Singing in the rain: this first part of the film shows the early history of motion picture. how accurate do you think the portrayal of the early motion picture industry is? why? is historical accuracy important in films and theater productions? explain.
Answers: 1
image
Computers and Technology, 23.06.2019 12:30, legend101xD
Animations and transitions are added from the
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, evanwall91
What does the faves button do? a. users mark a web page as a favorite b. leads other readers to favor a specific page c. readers sort and align their favicons, or favorite icons d. leads users to a message board where they can post questions
Answers: 1
image
Computers and Technology, 24.06.2019 07:30, Isabellawuzhere
Aproject involves many computing systems working together on disjointed task towards a single goal what form of computing would the project be using
Answers: 3
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 in other subjects:

Konu
Mathematics, 23.08.2021 04:00
Konu
Health, 23.08.2021 04:00
Konu
Mathematics, 23.08.2021 04:00
Konu
Mathematics, 23.08.2021 04:00
Konu
Mathematics, 23.08.2021 04:00