#include int main() { int i = 0; while (i < 5) { printf("%d\n", i); i++; // increment the loop counter } /* The while loop above works exactly the same as this for loop: for (i = 0; i < 5; i++) { printf("%d\n", i); } */ return 0; }