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, 21.06.2019 15:30
Communication is the exchange of information. true or false?
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 1
question
Computers and Technology, 25.06.2019 08:20
In the context of computer operations division is a(n)
Answers: 2
question
Computers and Technology, 25.06.2019 12:30
In a paragraph of no less than 125 words, explain what netiquette is and how it improves efficiency and productivity in the workplace.
Answers: 1
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, 24.08.2021 01:00
Questions on the website: 13722361