C++ Program To Find Largets Of Three

C++ Program To Find Largets Of Three

/*C++ Program To Find Largets Of Three*/

#include<iostream>

 using namespace std;

int main()
{int a,b,c,largest;
cout<<"Enter The Value Of A:--";
cin>>a;
cout<<"Enter The Value Of B:--";
cin>>b;
cout<<"Enter The Value Of C:--";
cin>>c;
largest=a>b?a:b>c?b:c;
cout<<"Largest Value Is:--"<<largest;
return 0;
}

Post a Comment

0 Comments