A program that read three numbers & display maximum.

#include<stdio.h>
#include<conio.h>

void main()
{
    int x,y,z,m;
    clrscr();
    printf("Enter 1st number = ");
    scanf("%d",&x);
    printf("Enter 2nd number = ");
    scanf("%d",&y);
    printf("Enter 3rd number = ");
    scanf("%d",&z);

    if(x<y)
    {
       if(x>z)
          m=x;
       else
          m=z;
    }
    else
    {
       if(y>z)
        m=y;
       else
        m=z;
    }

    printf("Maximum number = %d",m);

    getch();
}



///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........