subject

Given two integers, A and B, A is a divisor of B if B % A = 0. Write a complete program that reads two positive integers A and B and then, if A is a divisor of B, do the following: print A, print B, print the result of B divided by A. You are required to include a pre-test condition to check whether B >= A. If A > B, then you should swap the two integers, such that the value in A should be placed in B and that of B should be placed in A. A should be a divisor of B.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
How will you cite information that is common knowledge in your research paper?
Answers: 1
question
Computers and Technology, 22.06.2019 08:30
On the loan worksheet in cell c9 enter pmt function to calculate the monthly payment for the altamonte springs 2018 facilities loan. ensure that the function returns a positive value and set the reference to cells b5 and b6 as absolute references.
Answers: 2
question
Computers and Technology, 22.06.2019 10:20
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
question
Computers and Technology, 22.06.2019 11:00
Lisa’s company, abc ltd., lost its biggest client and is now facing a financial crunch. most of her colleagues have resigned, but lisa decides to stay with the company and assist the management in overcoming the financial situation. which quality is lisa demonstrating? a. self-management b. cooperativeness c. responsibility d. loyalty
Answers: 2
You know the right answer?
Given two integers, A and B, A is a divisor of B if B % A = 0. Write a complete program that reads t...
Questions
question
Mathematics, 19.05.2020 14:06
question
Mathematics, 19.05.2020 14:06
question
Mathematics, 19.05.2020 14:06
question
Spanish, 19.05.2020 14:06
question
Biology, 19.05.2020 14:06
question
English, 19.05.2020 14:06
question
History, 19.05.2020 14:06