Computer Science, asked by amritmr, 8 months ago

20. Rewrite the program and convert if-else() to Ternary operator.
if(m>=90 && m<=800)
{
P=m+12;
}
else
{
P=m-12,
}

Answers

Answered by rajrsharma2007
6

Answer:

The ternary operator, also known as the conditional operator, is used as shorthand for an if...else statement. A ternary operator is written with the syntax of a question mark ( ? ) followed by a colon ( : ), as demonstrated below. In the above statement, the condition is written first, followed by a

Explanation:

I give you answer now it is your duty to mark me as a brianliest please follow me on brainly

Answered by Anonymous
18

Answer:

1000 tak answer do inbox power mil jayegi

Explanation:

Similar questions