#include <stdio.h>

int main()
{
	/*declaring variables*/
	int n, number, trianglularNumber, counter;

	/* I want to ask the user to enter 5 numbers*/
	for(counter = 1; count <= 5; ++counter)
	{
		printf ("What triangular number do you want? ");
		scanf ("%i", &number);

		trianglularNumber = 0;

		/*for each of the numbers entered by the user we calculte the 
		 * the triangular number
		 */
		for(n = 1; n <= number; ++n)
		{
			triangularNumber += n;
		}

		/*print the triangular number*/
		printf("Triangular number %i is %i\n\n", number, triangularNumber);
	}
	
	return 0;
}