greatest of three

#include <iostream>

using namespace std;

int main()

{

 float n1,n2,n3;

 cout<<"Enter three numbers:";

 cin>>n1>>n2>>n3;

 if(n1>=n2&&n1>=n3)

 {

 cout<< "\nLargest number: "<<n1;

 }

 if(n2>=n1&&n2>=n3)

 {

 cout<<"\nLargest number: "<<n2;

 }

 if(n3>=n1&&n3>=n2)

{

 cout<<"\nLargest number:"<<n3;

 }

 return 0;

}

Comments

NOISE Smart Watch

https://trk.gonoise.in/click?campaign_id=13&pub_id=2111&p1={your-transaction-id}&p2=affiliate&source={your-sub-aff-id}&url=