View on GitHub How to use while loop in C Language While Loop On this page On this page While Loop Output ❮ Previous Next ❯ While Loop Program to use While Loop in C Language #include <stdio.h> int main() { int i = 1; while (i <= 5) { printf("%d\t", i); i++; } return 0; } Output 1 2 3 4 5 ❮ Previous Next ❯