.. www.engineerscur.blogspot.com: Clanguage program to find the maximum number out of three given numbers

Clanguage program to find the maximum number out of three given numbers

// program to find the maximum number out of three given numbers
#include<stdio.h>
#include<conio.h>
void main()
{           int  i,j,k;
            clrscr();
            printf("enter value of x:");
            scanf("%d",&i);
            printf("enter value of y:");
            scanf("%d",&j);
printf(“enter value of z”);
            scanf(“%d”,&k);
                        if(j<i)
                                    {
                                                if (k<i)
                                                {
                                                printf("x is max.");
}
else
{
printf(“z is max.”);
}
                                    }
                        else
                                    {
                                                if(k<j)  
{          
                                                printf("y is max.");
                                                }
                                                else
                                                {
printf(“z is max.”);
                                                }                                              
                                    }

            getch();
}