Sol2hw3a
#include <iostream.h>
main( )
{
|
double a, b; |
|
cout<<"Enter the first number, a"; |
|
cin>>a; |
|
cout<<"Enter the second number, b"; |
|
cin>>b; |
|
if (a = = b) |
|
cout<<"The two numbers are equal"<<endl; |
|
else if(a > b) |
|
cout<<"The larger number is "<<a<<endl; |
|
Else |
|
cout<<"The larger number is "<<b<<endl; |
|
|
}