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 00:50
Is one of the most injurious events that can happen to a person in a crash.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
question
Computers and Technology, 23.06.2019 21:50
Description: write function lastfirst() that takes one argument—a list of strings of the format "lastname, firstname" —and returns a list consisting of two lists: (a) a list of all the last names (b) a list of all the first names
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, 09.02.2021 20:10
question
Mathematics, 09.02.2021 20:10
Questions on the website: 13722366