Q: IF the ages of ram, shyam and Ajay are input through the keyboard,write a program to determine the youngest of three
#include
#include
void main()
{
int Ar,As,Aa;
printf("enter the age of ram,shyam,ajay");
scanf("%d%d%d",&Ar,&As,&Aa);
if(Ar
{
printf("ram is youngest");
}
elseif(As
{
printf("shyam is youngest");
}
else
{
printf("ajay is youngest");
}
getch();
}
No comments:
Post a Comment