View on GitHub How to write “do…while” loop C programming language? do-while Loop On this page On this page do-while Loop Output ❮ Previous Next ❯ do-while Loop #include <stdio.h> int main() { int i = 0; do { printf("%d\n", i); i++; } while (i < 5); return 0; } Output 0 1 2 3 4 ❮ Previous Next ❯