Computer Science, asked by arshdeepkaur75, 5 months ago

write a program by using if else z=x>y?x:y
please answer this​


004tranquil: hello can you write the question correctly I couldn't quite understand your question
arshdeepkaur75: please tell me
arshdeepkaur75: rewrite the following program by using if else. z=(x>y)?x:y
arshdeepkaur75: this is ques

Answers

Answered by RvP10
1

Answer:

a program by using if else z=x>y?x:y

Explanation:

if(x>y){

z=x;

}

else{

z=y;

}


arshdeepkaur75: is this correct please tell me i have to write
004tranquil: do you want in c or python
RvP10: yup
004tranquil: C++*
Answered by 004tranquil
0

Answer:

The answer below me is correct for c++

I'll give you for python

if x>y:

z=x

else:

z=y

Similar questions