//Check the Age by using if or else

#vpsinghrajput
void main()
{
    int age=0;
    clrscr();
    printf("\nEnter the Age:");
    scanf("%d",&age);
    if(age<4)
    {
        printf("\n\tInfant");
    }
        else if(age<8)
        {
            printf("\n\tKids");
        }
            else if(age<13)
            {
                printf("\n\tChild");
            }
                else if(age<20)
                {
                    printf("\n\tTeenager");
                }
                    else if(age<26)
                    {
                        printf("\n\tYoun Man");
                    }
                        else if(age<41)
                        {
                            printf("\n\tMan");
                        }
                            else if(age>41)
                            {
                                printf("\n\tOld main");
                            }
    getch();
}

//add and disply address of variable by using Pointor

#vpsinghrajput
void main()
{
    int a,b,p;
    int *p1;
    int *p2;
    clrscr();
    printf("\nEnter the The First No::");
    scanf("%d",&a);
    printf("\nEnter the Second No::");
    scanf("%d",&b);
    p1=&a;
    p2=&b;
    printf("\n\nAddress of the First Variable a  is  :: %u",p1);
    printf("\n\nAddress of the Second Variable a  is  :: %u",p2);
    printf("\n\n\nValue Stored of the First Address is  :: %d",*p1);
    printf("\n\n\nValue Stored of the Second Address is  :: %d",*p2);
    p=*p1+*p2;
    printf("\n\nThe sume Variable is  :: %d",p);

    getch();
}

//Largest No in group of 5

#vpsinghrajput
void main()
{
    int a,b,c,d,e;
    clrscr();
    printf("\nEnter the First Number:");
    scanf("%d",&a);
    printf("\nEnter the second Number:");
    scanf("%d",&b);
    printf("\nEnter the third Number:");
    scanf("%d",&c);
    printf("\nEnter the Fourth Number:");
    scanf("%d",&d);
    printf("\nEnter the Fiveth Number:");
    scanf("%d",&e);
    if(a>b)
    {
        if(a>c)
        {
            if(a>d)
            {
                if(a>e)
                {
                    printf("\n\t%d is the Largest No",a);
                }
                else
                {
                    printf("\n\t%d is the Largest No",e);
                }
            }
        }
    }
    else
    {
        if(b>c)
        {
            if(b>d)
            {
                if(b>e)
                {
                    printf("\n\t%d is the Largest No",b);
                }
                else
                {
                    printf("\n\t%d is the Largest No",e);
                }
            }
        }
        else
        {
            if(c>d)
            {
                if(c>e)
                {
                    printf("\n\t%d is Greatest ",c);
                }
                else
                {
                    printf("\n\t%d is Greatest ",e);
                }
            }
            else
            {
                if(d>e)
                {
                    printf("\n\t%d is the Largest No",d);
                }
                else
                {
                    printf("\n\t%d is Greatest No ",e);
                }
            }
        }
    }
    getch();
}