Answer to Question #314336 in C++ for iqra

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



1
Expert's answer
2022-03-19T07:29:18-0400
#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;
} 

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog