Menu


.

Write a program to find out whose age is smaller.

#include< iostream.h >

#include< conio.h >

void main()

{

clrscr();

int p,q,r,s;

cout<<"Enter the ages of Anshul , Anil and Sunil";

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