Computer Science, asked by niranthkumard, 19 days ago

Rewrite the given if..else statement using ternary operator int x=10; String subject; if(x1=5) subject="Computer"; else subject="Applications”; QUESTION 4: i) Write the output for the following: int a=200,b=550; boolean x=(a>=b)?true:false; (2)​

Answers

Answered by abenkr2013
0

Answer:

Rewrite the following using ternary operator. if( x%2=0) System.out.println ("Even"); else System.out.println (“Odd");

Similar questions