Rewrite the following if-else into ternary form:
if(a>b)
{
z=a+b;
}
else
{
z=a-b;
}
Answers
Answered by
5
Answer:
a>b?(z=a+b) : (z=a-b);
Explanation:
PLEASE MARK ME AS THE BRAINLIEST
Similar questions