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 10:30, ghazanfarwaheed7967
Auniversity wants to install a client-server network. which feature do you think is important for them as they set up the network? sending email blocking multiple people to use the same file low security low set up cost limited access to files
Answers: 1
Computers and Technology, 22.06.2019 19:20, sindy35111
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
Computers and Technology, 23.06.2019 17:30, kenyasutton10
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
Challenge
You have been challenged to read a value and create a program that puts the read value in...
Physics, 09.03.2021 21:10
Business, 09.03.2021 21:10
Mathematics, 09.03.2021 21:10
Mathematics, 09.03.2021 21:10
Mathematics, 09.03.2021 21:10
Social Studies, 09.03.2021 21:10
Mathematics, 09.03.2021 21:10