ACCEPTING THREE INTEGER AND PRINTING THE LARGEST OF THE ALL

ACCEPTING THREE INTEGER AND PRINTING THE LARGEST OF THE ALL

 # include <iosteram.h>
 # include <conio.h>
 void main()
 {
  clrscr();
  int x,y,z,max ;
 cout <<"enter the three numbers:";
  cin<<x<<y<<z; 
  max=x;

  if (y>max)
  max=y;
 if (z>max)
 max=z;
  cout<<"\n"<<"the largest of "<<x<<"."<<y<<"and"<<z<<"is"<<max;
  getch();