Arithmetic operators · 10 / 18 Exercise Easy

Division and division module

Objective

Write a program in Python that requests two integers from the user (x, y) and print the result of the division and the rest of the division on a new line.

Instructions

  1. Solicit two integers from the user (x, y).
  2. Perform the division of x by y.
  3. Print the result of the division on a new line.
  4. Calculate the remainder of the division of x by y.
  5. Print the remainder on a new line.
Input
24
5
Output
4
4

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise