Friday 4 July 2014

Program to find largest from 3 numbers




//Biggest from three numbers
#include<iostream.h>
#include<conio.h>
void main ()
{
int a,b,c;
clrscr ();
cout<<"Enter three numbers:";
cin>>a>>b>>c;
if(a>b && a>c)
cout<<"Biggest number is: "<<a;
else if(b>a && b>c)
cout<<"Biggest number is: "<<b;
else
cout<<"Biggest number is: "<<c;
getch();
}

No comments:

Post a Comment