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

Access this course and 1400+ top-rated courses and projects.