//Gaynor Thomas Week 6 Repetition
#include <stdio.h>

void main()
{
int x=0,howmany,mynumber,total=0;

printf("How many numbers would you like to add?");
scanf("%d",&howmany);

for(x=0;x<howmany;x++)
{
	printf("\nPlease enter next number:");
	scanf("%d",&mynumber);
	total=total+mynumber;
}

printf("Thank you. The total is: %d",total);

}
