I want to enter user input numbers into an array (up to 5).

Once the amount of numbers in the array reaches 5 or the number "0" is entered the array is printed out with the number of numbers entered. 

How would I fix this code to achieve that?

```
#include <stdio.h>

void main()
{
    //Declare Variables
    int i,n,arr[5];

    //Insert Into Array
    printf("Input up to 5 integers:\n");
    for(i=0; i<5; i++)
    {
        printf("%d : ",i+1);
        scanf("%d", &arr[i]);
        if (arr[i] == 0) 
        {
            break;
        }
        else 
        {
            continue;
        }
    }

    //Display Array
    printf("The %d integers stored in the array are:\n", n);
    for(i=0; i<5; i++)
    {
        printf("%d\n", arr[i]);
    }
    printf("\n");
}

```