TutorialsBazaar

← Back

Learn C Programming

Module 8/15

Loops (for, while, do-while)

Module 8 of 15

Loops are used to repeat a block of code multiple times. for loop is used when iterations are known, while loop when condition-based, and do-while executes at least once.

Loops का उपयोग code को बार-बार चलाने के लिए होता है। for loop निश्चित बार के लिए, while condition के लिए और do-while कम से कम एक बार चलता है।

#include <stdio.h>

int main() {
    printf("Welcome to Loops (for, while, do-while)");
    return 0;
}