Answer to Question #268689 in UNIX/Linux Programming for hummi

Question #268689

Problem Statement

You are to write a Linux elf64 assembly language program that performs the following tasks:

1. Prompts the user to enter a positive integer number (of value no more than 264-1.)

2. Prompts the user to enter a second positive integer number (of value no more than 264-1.)

3. Prints out the integer that is the greatest common divisor of the two entered numbers.


For those that don’t know, there is a famous algorithm (that is at least 2000 years old) for calculating this value. The greatest common divisor (GCD) algorithm goes as follows:

GCD (a, b):
 if (b==0) 
answer = a 
else if (a<a) 
answer = GCD (b, a )
else // (b>=a)
answer = GCD (b, a % b)
1
Expert's answer
2021-11-21T17:42:57-0500
Dear hummi, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS