All pastes #546878 Raw Edit

Example C

public c v1 · immutable
·published 2007-06-07 06:10 UTC
rendered paste body
#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;}