Write a C++ program that prompts the user to input three integer values and find the greatest value of the three values.
#include<iostream>
using namespace std;
int main()
{
int f,s,t;
cout<<"Enter first number= ";
cin>>f;
cout<<"Enter second number= ";
cin>>s;
cout<<"Enter third number= ";
cin>>t;
if (f>s && f>t)
{
cout<<"Greatest number is "<<f;
} else if (s>f && s>t)
{
cout<<"Greatest number is "<<s;
} else {
cout<<"Greatest number is "<<t;
}
}