a program which get the value of three numbers x, y and z from user and check whether x and y are equal and greater than z
#include <iostream>
using namespace std;
int main() {
int x, y, z;
cin >> x >> y >> z;
if ( x == y && x > z) {
cout << "x and y are equal and greater than z" << endl;
}
else {
cout << "The condition does not met" << endl;
}
return 0;
}
Comments
Leave a comment