In c++ I have am going through a online course and I have no idea where else to find the answer to this or good c++ websites to learn from. The code below is supposed to give the output: Both numbers are equal OR Greater value is a/b.
#include <iostream>    
#include <string>    
using namespace std;    
int main(int argc, char* argv[])    
{    
  int a,b,c=0;    
  cout<<"Enter value of 1st variable: ";    
  cin>>a;    
  cout<<"Enter value of 2nd variable: ";    
  cin>>b;    
  {
    if ( !(a == b));
    !true;
    cout << "Both are equal";
  }
  !false;
  {
    if (a>b)
      c = a; 
    if (b>a);
      c = b; 
    cout << "Greater value is " << c;
  }
}
I don't know any other ways to give the output I want.
So if the first input is 50 and the second is 50 I get the output Both are equalGreater value is 50
If the first is 50 and the second is 49 I get the output Both are equalGreater value is 49.
If the first is 50 and the second is 90 I get the output Both are equalGreater value is 90.   
 
     
     
    