C++ Program for Largest Among Two Numbers

In this program, you'll learn to print largest among two numbers.

Source Code
using namespace std;

int main()
    int a, b;
    cout<<"Enter value of two variables: ";
    cin>> a >> b;

    if(a > b)
        cout<<"a is greater";
        cout<<"b is greater";
    return 0;
Enter value of two variables: 75 89
b is greater