Computer Science, asked by ram8365esh18, 5 months ago

Write an assembly language program to calculate the following.

(((((2^0 + 2^1) × 2^2) + 2^3)×2^4)+2^5. . .) + 2^n

Hint: Note that when n is even, carrying result is multiplied by 2n. When n is odd, carrying result is added to 2n (above formula shows the case where n is odd).

As an example, when n = 5, it should print 352.

You need to have a dialog box to read the value of n. You need to check for n < 0 and display an appropriate error message. As n increases, at one point, you will not be able to hold the result in a 32-bit register. You should check for it (probably using jo instruction), display an appropriate error message.

Valid result should be displayed using a message box​

Answers

Answered by devdeepdas0000
0

Answer:

hatt gandu!!!! itna bhi nhi aata!!!!

bhosdk

Similar questions