If the ages of Ali, Hassan and Asad are input by the user, write a program to determine the youngest of the three.

If the ages of Ali, Hassan and Asad are input by the user, write a program to determine the youngest of the three.



#include<iostream>
using namespace std;
int main ()
{
int r,s,a;
cout<<"Enter age of Ali "<<endl;
cin>>r;
cout<<"Enter age of Hassan "<<endl;
cin>>s;
cout<<"Enter age of Asad "<<endl;
cin>>a;
if (r<s && r<a)
{
cout<<"\n";
cout<<"Ali is Younger than both ";
}
else if (s<r && s<a)
{
cout<<"\n";
cout<<"Hassan is Younger than both ";
}
else
{
cout<<"\n";
cout<<"Asad is Younger than both ";
}
}



If the ages of Ali, Hassan and Asad are input by the user, write a program to determine the youngest of the three.

If the ages of Ali, Hassan and Asad are input by the user, write a program to determine the youngest of the three.

If the ages of Ali, Hassan and Asad are input by the user, write a program to determine the youngest of the three.