A program that read three numbers & display medium.

#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)
       {
          if(y>z)
             m=y;
          else
             m=z;
       }
       else
         m=x;
    }
    else
    {
       if(y>z)
       {
          if(x>z)
        m=x;
          else
        m=z;
       }
       else
         m=y;
    }

   
    cout<<"Midium number = "<<m;

    getch();
}

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