Friday, 2 November 2012
Program Of And, comma(,) , Relational(>) Operator In C++
#include<iostream.h>
#include<conio.h>
main()
{
clrscr();
int a,b,c;
cout<<"Enter a,b,c";
cin>>a>>b>>c;
if(a>b && a>c)
{
cout<<"\n a is Greater";
}
if(b>c && b>a)
{
cout<<"\n b is Greater";
}
if(c>a && c>b)
{
cout<<"\n c is Greater";
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment