public class Test {
public static void main(String args[]) {
int x = 30;
int y = 10;
if( x == 30 ) {
if( y == 10 ) {
System.out.print("X = 30 and Y = 10");
}
}
}
}
0
0
iç içe geçmiş ıf deyimi
if (condition) {
if (anotherCondition) {
// executes if both condition and anotherCondition are true
} else {
// executes if condition is true and anotherCondition is false
}
} else {
// executes if condition is false
}