Checking for equality

Description:

Write a program to overload functions to find the two given integer and floating number are equal Test Case 1 Input (stdin) 10 10 25.5 25.5 Expected Output The numbers are equal The numbers are equal Test Case 2 Input (stdin) 10 25 35.25 35.25 Expected Output The numbers are not equal The numbers are equal

Program :

#include <iostream>

using namespace std;

int main()

{

int a,b;

  float c,d;

  cin>>a>>b>>c>>d;

  if(a==b)

    cout<<"The numbers are equal";

  else

    cout<<"The numbers are not equal";

  if(c==d)

    cout<<"\nThe numbers are equal";

  else

    cout<<"\nThe numbers are not equal";

return 0;

}