Coding Challenge: Number Comparison

Learn how to compare two numbers.

Problem statement

Write a program that accepts two numbers, then compares their values and displays an appropriate message in all cases.

Input

Enter first number: 5
Enter second number: 3

Expected output

5 is greater than 3

Coding exercise

Get hands-on with 1200+ tech skills courses.