Question #314336

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



Expert's answer

#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;
} 
LATEST TUTORIALS
APPROVED BY CLIENTS