Menu


.

Write a program to find out whose age is greater.

#include< iostream.h >

#include< conio.h >

void main()

{

clrscr();

int p,q,r,s;

cout<<"Enter the ages of Ram , Sulabh and Ajay";

cin>>p>>q>>r;

if(p<q && p<r)

{

s=p;

}

else if(q<r)

s=q;

else

s=r;

cout<<"The youngest is"<<s

getch();

}




Enjoy our courses Today