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;

    m=(x>y)? (x>z)? (y>z)? y:z:x: (y>z)? (x>z)? x:z: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.........