Greatest of 2 numbers

Description:

Write a C++ program to get and display the greatest of two numbers Test Case 1 Input (stdin) 10 20 Expected Output The greatest number is 20 Test Case 2 Input (stdin) 25 15 Expected Output The greatest number is 25

Program :

#include <iostream>

using namespace std;

 int main()

{

int a,b;

 cin>>a >>b;

if(a>b) cout<<"The greatest number is "<<a;

else cout<<"The greatest number is "<<b;

 return 0;

 }