Hi guys,

I'm experimenting with while and do-while loops:
Code:
// Prints 1 to 20 twice

#include <stdio.h>

int main (void)
{
	
	// Print using while loop
	int wCtr = 1;
	while (wCtr <= 20)
	{
		printf ("%i\n", wCtr);
		wCtr++;
	}
	
	// Print using do-while loop
	int dwCtr = 1;
	do
	{
		printf ("%i\n", dwCtr);
		dwCtr++;
	}
	while (dwCtr <= 20);
	
	return 0;
}
Scratch this post guys, I figured it out. C is fun. :D