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 10:50
A911 dispatcher is the sole sender of messages to all police officers. while on patrol, officers communicate with the dispatcher who, in turn, relays messages to other officers. the officers do not communicate directly with one another. this illustrates a network.
Answers: 1
question
Computers and Technology, 22.06.2019 22:10
Asequential circuit contains a register of four flip-flops. initially a binary number n (0000 ≤ n ≤ 1100) is stored in the flip-flops. after a single clock pulse is applied to the circuit, the register should contain n + 0011. in other words, the function of the sequential circuit is to add 3 to the contents of a 4-bit register. design and implement this circuit using j-k flip-flops.
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
What are some ways to use a range name in a formula? check all that apply. in the defined names group, click use in formula, and then select the desired name. begin typing the name in the formula, select a name from the autocomplete list, and use the arrow keys and tab key to enter the name in the formula. begin typing the formula, and then click and drag with the mouse to select the cells to include in the formula. right-click one of the cells in the range. click formula options, and use the dialog box to add the name.
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
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
Mathematics, 21.04.2020 00:36
question
Mathematics, 21.04.2020 00:37
Questions on the website: 13722367