Greatest of three numbers (C++)

Description:

Find the greatest of the given three numbers Test Case 1 Input (stdin) 10 20 30 Expected Output 30 Test Case 2 Input (stdin) 8 5 9 Expected Output 9

Program :

#include <iostream>
using namespace std;
int main()
{
int a,b,c;
cin >> a>> b>> c;
if(a>=b && a>=c)
cout<< a;
else if (b>=c)
cout << b;
else
cout << c;

return 0;
}