003-002-008

Comparison Operators: Number Comparison

Easy

Problem Description

Comparison Operators: Number Comparison

Learning Objective: Use comparison operators (>, <, >=, <=, ==, !=) to compare values

Create a program to compare two numbers and determine their relationship. Use comparison operators to display results.

Input

Line 1: First number (integer)
Line 2: Second number (integer)

Output

A = [first number]
B = [second number]
A > B : [true/false]
A < B : [true/false]
A == B : [true/false]

Examples

Example 1

Input:

10
5

Output:

A = 10
B = 5
A > B : true
A < B : false
A == B : false

Example 2

Input:

7
7

Output:

A = 7
B = 7
A > B : false
A < B : false
A == B : true

Ready to Try Running Code?

Log in to access the code editor and execute your solutions for this problem.

Don't have an account?