For assignment 1 (for even) it is ok or not{int n =22;if(n%2==0)n%11==0;else System.out.println("it is not even or multiple of 11");
In eclipse,Ternary operator program was executed but does not show the answer.just a warning message is show,why?
Can you please give the solution for the question number 2 of assignment as I am unable to figure out the result/condition statement?
12458 visits
Outline:Outline *explain nested if *nested if syntax *program to demonstrate nested if *explain the control flow of the program *explain ternary operator *syntax for ternary operator *explain the syntax *program to demonstrate ternary operator *comparison between ternary operator and nested if *save, compile and run the program
Outline *explain nested if *nested if syntax *program to demonstrate nested if *explain the control flow of the program *explain ternary operator *syntax for ternary operator *explain the syntax *program to demonstrate ternary operator *comparison between ternary operator and nested if *save, compile and run the program
Show video info
Pre-requisite