Example C
public c v1 · immutable#include <stdio.h>#include <stdlib.h>int main(){ int runs = 0; // while(condition) will execute what is inside as long as // condition holds true. while(runs < 5) { // do stuff... printf("Hello World.\n"); runs = runs + 1; } // The below is equivalent: /* for(runs = 0; runs < 5; ++runs) { printf("Hello World.\n"); } */ system("pause"); return 0;}