PROGRAM ON FINDING SMALLEST OF THREE NUMBER

#include<iostream.h>
#include<conio.h>
void main()
{
   int x,y,z,small;
   clrscr();
   cout<<"Enter the three no.";
   cin>>x>>y>>z;
   small=x;
   if(y<small)
   small=y;
   if(z<small)
   small=z;
   cout<<"\n"<<"Smallest of "<<x<<", "<<y<<" and "<<z<<" is "<<small;
   getch();
}

Comments

Popular Posts