A program that read three numbers & display maximum.

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

void main()
{   
    int x,y,z,m;
    clrscr();
    cout<<"Enter 1st number = ";
    cin>>x;
    cout<<"Enter 2nd number = ";
    cin>>y;
    cout<<"Enter 3rd number = ";
    cin>>z;

    if(x>y)
    {
       if(x>z)
          m=x;
       else
          m=z;
    }
    else
    {
       if(y>z)
        m=y;
       else
        m=z;
    }
   
    cout<<"Maximum number = "<<m;

    getch();
}



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