//write a c++ program to find greater of two given number #include <iostream> using namespace std; int main() { float n1,n2,n3; cout<<"Enter three numbers:"; cin>>n1>>n2>>n3; if(n1>n2) { cout<<"\nLargest number: "<<n1; } if(n2>n1) { cout<<"\nLargest number: "<<n2; } return 0; } x
Comments
Post a Comment