-2
#include <iostream>

using namespace std;

int main()

{
    cout << "entre two numbers";
    double x, y;
    cin >> x >> y;

    if (x != y)
        if (x % 2 == 0)
            if (y % 2 == 0)
                cout << "the two numbers are accepted";
            else
                cout << "the two numbers are not accepted";

    return 0;
}
Yksisarvinen
  • 18,008
  • 2
  • 24
  • 52

1 Answers1

0

You have to declare the variables of 'int' type instead of double and your error will get resolved.

Write below line. int x,y;