A Calculator has two memory buttons, A and B, Value 1 is intially stored in both memory location the following sequence of step carried out eight times. A. Add 1 to B B. Multiply A to B C. Store the result in A What is the value of A?
Answers
Answered by
1
Answer:
Important steps to solve this question:
Let's treat A and B as two variables on which the given mathematical operations will be performed.
Initially A = 1, B = 1.
Iteration 1: B = B + 1 = 2, and A = A*B = 1*2 = 2.
Iteration 2: B = B + 1 = 3, and A = A*B = 2*3 = 6.
Iteration 3: B = B + 1 = 4, and A = A*B = 6*4 = 24.
Iteration 4: B = B + 1 = 5, and A = A*B = 24*5 = 120.
Iteration 5: B = B + 1 = 6, and A = A*B = 120*6 = 720.
Hence, the value stored in memory location A after this procedure is 120.
Request:
plz mark me brainlist
Similar questions