Skip to content
C

Problem 2: Basic Calculator

Easypython

Problem Description

Write a Python program that takes two numbers as input and prints their sum, difference, product, and quotient.

Input

Two numbers, entered one at a time.

Output

Four lines showing the sum, difference, product, and division result (in that order).

Constraints

  • The second number will not be zero.

Example Input

text
10 5

Example Output

text
Sum: 15 Difference: 5 Product: 50 Quotient: 2.0

Concepts Covered

input(), type conversion, arithmetic operators, print().

Input (stdin)

Output

Run your code to see output here...