Revision-4

Given two numbers A and B, print the largest. 


Given a number N, check if it is divisible by 3. 


What is the Ternary Operator

The ternary operator, also known as the conditional operator, is a shorthand alternative to the traditional if-else statement in Java. It allows us to evaluate a condition and choose between two expressions based on the result of that condition.

Syntax : condition ?  expression1 :  expression2

Example : string result = ( number >0 )  ? "Positive" : "Negative"


Given a number N, check if it is odd or even.  

Revision-6