003-001-009
Arithmetic Operators: Four Basic Operations
Easy
Problem Description
Arithmetic Operators: Four Basic Operations
Learning Objective: Understand basic calculations using arithmetic operators (+, -, *, /)
Overview
Create a program that receives two integers as input and outputs the results of the four basic operations (addition, subtraction, multiplication, division).
Specifications
- Read the first integer from the first line
- Read the second integer from the second line
- Output the results of addition, subtraction, multiplication, and division in order
- Output each result in the format "[operation]: [result]"
Input Format
10
3
Output Format
Addition: 13
Subtraction: 7
Multiplication: 30
Division: 3
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
