Ternary Operator is the kind of operator in which 3 parts
1.)Condition
2.) What do if Condition true
3.) What do if Condition false
SYNTAX: (Condition)? (What do if Condition true) : (What do if condition false);
Coding:-
Expected Output:- 20
Same
Description:-
Practical Video
We you have any doubt let me know :)