NBA - Boston Celtics

Sunday 18 November 2012

BIG-BIGGER-BIGGEST


#include<iostream.h>
#include<math.h>
void main()
{
int a,b,c,big1,big2,big3;
cout<<"enter the value of a,b and c : ";
cin>>a>>b>>c;
if(a>b)
{
if(a>c)
{
big1=a;
big2=c;
}
big3=b;
}
if(b>a)
{
if(b>c)
{
big1=b;
big2=c;
}
big3=a;
}
if(c>a)
{
if(c>b)
{
big1=c;
big2=b;
}
big3=a;
}
cout<<"the order are";
cout<<big1<<","<<big2<<","<<big3;
}

No comments:

Post a Comment