for स्टेटमेन्ट- for लूप का प्रयोग किया जाता हैं जब किसी कार्य को पूर्व निर्धारित संख्या के बराबर दोहराया जाता है।
for(initial value;test condition;increment/decrements)
{
statements;
}
while स्टेटमेन्ट
while लूप के अन्दर के स्टेटमेन्ट जब तक कंडिशन सत्य है तब तक संपादित होता है। इसे प्रि-टेस्ट कंडिशन लूप भी कहा जाता है।
while(condition is true)
{
statements;
}
do-while स्टेमेन्ट
do-while लूप को पोस्ट टेस्ट कंडिशन लूप कहा जाता हैं यह लूप कम से कम एक बार तो संपादित होता है।
do
{
statements;
}
while(condition is true);