While Loop:-
While loop keeps repeating an action until a condition returns false.
Nested While loop:-
Nested while loops work as while loop but in this case, you use one or more while loop condition in one while loop.
ex:-
Do While loop:-
Do While loop work as while loop but in this case Before executed then check condition is true then execute next if condition is false then exit.
ex:-
Nested Do While loop:-
Nested Do While loop work as Do While loop but in this case you can add or use one or more do while loop in one parent do while loop.
ex:-
For loop :-
For loop is frequently used where you will be a fixed number of times.
ex:-
Nested for loop :-
Nested for loop work like as for loop but one or more for loop in one parent for loop.
ex:-
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals