#include <stdio.h>

int main(int argc, char* argv[])
{
	//make array
	const int ARRAY_MAX = 10;
	int myArray[ARRAY_MAX];
	int count = 0;
	int temp;
	
	printf("Please enter a number\n");
	scanf("%d",&temp);
	
	//read in numbers -1 stops
	while(count < ARRAY_MAX && temp > 0)
	{
		myArray[count] =  temp;
		count++;
		
		if(count < ARRAY_MAX)
		{
			printf("Please enter a number\n");
			scanf("%d",&temp);
		}
		else
		{
			printf("Array now full\n");
		}
	}
	
	//print out array. 
	for(int i = 0; i < count; i++) //i = i+1
	{		
		printf("%d\n",myArray[i]);
	}
	
	return 0;
}

