Computer Science, asked by aarisharshi123, 6 months ago

Convert the following code segment into its equivalent if else statement:
String max=(a%2==0)?"Even" : "Odd"; ​

Answers

Answered by BrainlyProgrammer
3

Answer:

String max;

if (a%2==0)

max="Even";

else

max="Odd";

Answered by anindyaadhikari13
2

Answer:-

Using if else, we can write like this.

String max;

if(a%2==0)

max="Even";

else

max="Odd";

Similar questions