Ask Question

First, define an integer variable and assign it any value of your choice. Then you'll need to perform the following operations with it:

1. Add 9

2. Multiply by 2

3. Subtract 4

4. Divide by 2

5. Subtract by the variable's original value

6. Finally, display what the end result is.

7. Once your math / code is complete, double check your work by seeing what happens with the end result when you use different starting values. You should notice something "interesting".

+3
Answers (1)
  1. 16 December, 14:10
    0
    Python code:

    x=121

    x + = 9

    x * = 2

    x - = 4

    x >> = 2

    x - = 121
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “First, define an integer variable and assign it any value of your choice. Then you'll need to perform the following operations with it: 1. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers