Nested IF Else Statements

Java Nested If Else In Hindi – Control Statement in Java In Hindi

Java

Java Nested If Else In HindiControl Statement in Java In Hindi Nested if-else Condition Ke Under Ek or If Else Condition Jo Hoti Hai Usse Hi Ham Nested if-else  Kahte Hai |

Also Read – Java If Else Statements

Java Nested If Else In Hindi

Nested If Else Statement kese work karta hai ?

Aap Upper Dekh Sakte Hai Java Nested If Else statement In Hindi Me Expression Ko Check Kar Rhe Hai or Uske Bad Us Statement ke Under Ek or Condition Check kar Rhe Hai And Uske Bad Ham Statement Ko print kar Rhe Hai |

Nested If Else Statement in Java Flow Chart

Aap Niche Diye Gaye Flow Chart Image In Java Ko Dekh Sakte Hai Or Uske Hisab Se Aap Ye Understand Kar Sakte Hai Ki Nested Loop In Java Kese Kaam Karti Hai |

Nested If Else Statement in c Flow Chart

Nested Else If Statement in Hindi Ko Acchi Tarah Se Understand Karne Ke Liye Ham Ab Ek Kuch Program Banate Hai |

Also Read – If Statement In Hindi

Syntax:

if(condition) {
    //Nested if else inside the body of "if"
    if(condition2) {
       //Statements inside the body of nested "if"
    }
    else {
       //Statements inside the body of nested "else"
    }
}
else {
    //Statements inside the body of "else"
}

Example:

public class Myclass 
{ 
    public static void main(String args[]) 
    { 
        int i = 10; 
  
        if (i == 10) 
        { 
            // First if statement 
            if (i < 15) 
                System.out.println("i is smaller than 15"); 
  
            // Nested - if statement 
            // Will only be executed if statement above 
            // it is true 
            if (i < 12) 
                System.out.println("i is smaller than 12 too"); 
            else
                System.out.println("i is greater than 15"); 
        } 
    } 
} 

Output:

i is smaller than 15
i is smaller than 12 too

Yadi Aapne  HTML Full Course  And CSS Full Course And Python Full Course And PHP Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai |

Friends Mujhe Umeed Hai Ki Aapko Nested IF Else Statements In Java in Hindi Ke Bare Mai 100% Jankari Ho Gayi Hogi | Agar Aapko Learn Karne Main Dikkat Aa Rahi Hai To Aap Mere Se Contact Kar Sakte Hai |

2 thoughts on “Java Nested If Else In Hindi – Control Statement in Java In Hindi

Leave a Reply

Your email address will not be published. Required fields are marked *