While And Do While In Hindi

While And Do While In Java In Hindi – Java While Loop In Hindi

Java

While And Do-While In Java In HindiJava While Loop In HindiJava Language Me Aapko Loops Provide Kiye Gye Hai | Java Loops Ki Help Se Aap Ek Hi Statement ko Bar Bar Execute Karva Sakte Hai |

Jab Tak Kisi condition Ka Satisfaction Nhi Hota Hai Tab Tak Loop Ka statement repeat Hota Rahta Hai |

Java Loops 3 Parkar Ke Hote Hai |

  1. While loop
  2. Do-while loop
  3. For loop

Is Post Me Keval While And Do While Loop In Hindi Ko Dekhne Wale Hain |

While And Do While In Java In Hindi

Flow Chart While And Do-While

difference between while and do while in Hindi
While and Do-While in Java|

While Loop in Java in Hindi

Java While Loop in Hindi Ek Single Loop Hoti Hai. Jab Condition True Hoti Hai Tab hi Statement Execute Hote Hai.

While Loop Ko Ham Example Ke Sath Understand Karte Hain |

Syntax While Loop :-

while (condition) {
  // code block to be executed
}

Example:

public class Main
{
	public static void main(String[] args) {
	    int i = 0;
	    while(i<5){
		    System.out.println("MasterPrograming.com");
		    i++;
	    }
	}
}

Output:

MasterPrograming.com                                                                                                          
MasterPrograming.com                                                                                                          
MasterPrograming.com                                                                                                          
MasterPrograming.com                                                                                                          
MasterPrograming.com  

Aap Upper Output Ko Dekh Sakte Hai While Loop ko aap kese istemal kar sakte hai.

Do-While Loop In Java in Hindi

Java Do While Loop In Hindi Me Pahle Program Execute Hota hai or bad me condition check Hoti Hai | Lekin Do while statement Ek bar hi execute Hoti hai.

Also Read – Java Switch

Do While Loop Ko Ham Example Ke Sath Understand Karte Hain |

Syntax Do-While Loop

do {
  // code block to be executed
}
while (condition);

Example:

public class Main
{
	public static void main(String[] args) {
	    int i = 0;
        do {
        System.out.println("MasterPrograming.com");
        i++;
    }
    while (i < 5); 
    }
}

Output:

MasterPrograming.com                                                                                                          
MasterPrograming.com                                                                                                          
MasterPrograming.com                                                                                                          
MasterPrograming.com                                                                                                          
MasterPrograming.com 

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  Loop  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 |

Leave a Reply

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