//Loops(1) Solution Ex 3

#include <stdio.h>

void main()
{
	int number1, number2, total;
	char choice='y';

	while (choice != 'n')
	{
		printf("Welcome to the Add program!\n\n");

		printf("Enter a number: ");
		scanf("%d", &number1);
		printf("Enter another number: ");
		scanf("%d", &number2);

		total = number1 + number2;
		printf("The result was %d", total);

		printf("\n\nDo you want to go again? (y/n)");
		scanf(" %c", &choice);
	}

}