Computer Science, asked by deydebdatta98, 1 day ago

Rewrite the following if-else into ternary form:
if(a>b)
{
z=a+b;
}
else
{
z=a-b;
}​

Answers

Answered by bcsharma1945
5

Answer:

a>b?(z=a+b) : (z=a-b);

Explanation:

PLEASE MARK ME AS THE BRAINLIEST

Similar questions