Ask Question
25 June, 09:26

Instructions

Write a program that prompts the user to input two numbers-a numerator and a divisor. Your program should then divide the numerator by the divisor, and display the quotient and remainder without decimals.

+5
Answers (1)
  1. 25 June, 10:35
    0
    Write a program that prompts the user to input two numbers-a numerator and a divisor. Your program should then divide the numerator by the divisor, and display the quotient and remainder without decimals.

    Explanation:

    The code below is written in python:

    a=int (input ("Enter the first number: "))

    b=int (input ("Enter the second number: "))

    quotient=a//b

    remainder=a%b

    print ("Quotient is:", quotient)

    print ("Remainder is:", remainder)

    1. User must enter the first and second number.

    2. The quotient is obtained using true division (/ / operator).

    3. The modulus operator gives the remainder when a is divided by b.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Instructions Write a program that prompts the user to input two numbers-a numerator and a divisor. Your program should then divide the ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers