Give a machine language program which computes the cube of the number stored in address 100 and stores in address 200.
Answers
Answered by
1
Answer:
Explanation:
For all high school and college homework, go to https://www.ideolance.com and get very fast replies.Thank you
Answered by
1
cube from 100 to 200 machine language.
Output:
please find the attachment.
Explanation:
Program to this question can be described as follows:
Program:
def cube(num): #define method
while num<=200: #define loop to count value from 200
print(num,'=', num*num*num) #print value and its cube
num=num+1 # increment value
cube(100) #call the method cube and pass value
Description of the code:
- In the given code, a method cube is declared, that accepts a num variable, inside the method, a while loop is declared.
- In the loop, a condition is used that counts the value from 200, and inside the loop print method is used, which calculates given range cube and increment num variable value by 1.
- In the method calling time, the cube is used that accepts a value num, which is equal to 100.
Learn more:
- Output: https://brainly.in/question/14705748
Attachments:
Similar questions