Question: Write an x 8 6 - 6 4 Architecture Assembly Language program that implements the following specifications. prompt the user for a number ( recall

Write an x86-64 Architecture Assembly Language program that implements the following specifications.
prompt the user for a number (recall the use of printf and scanf)
use a loop to print the word "hello" as many times as the user entered
there is one exception, if they are on an iteration of the loop that is divisible by 5, instead print "hello, there"
count the number of times "hello, there" is printed using a counter
after exiting the loop, print the number of "hello, there"s that were printed
For example, if the user enters the number 13, the following would be the output:
hello
hello
hello
hello
hello, there
hello
hello
hello
hello
hello, there
hello
hello
hello
2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!