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, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
If i wanted to include a built-in calendar in a document, what option could i select? draw table insert table insert chart quick tables
Answers: 1
question
Computers and Technology, 23.06.2019 23:00
How do you know if the website is secure if you make a purchase
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, 06.08.2021 14:00
question
Mathematics, 06.08.2021 14:00
question
Geography, 06.08.2021 14:00
question
Mathematics, 06.08.2021 14:00
Questions on the website: 13722363