#include <stdio.h>
#include <conio.h>
#include <stdlib.h>

int main()
{
    int a[], n, i, j;

    printf("Enter the array size:");
    scanf("%d", &n);

    for(i = 0; i < n; i++)
    {
        printf("Enter the required array element:");
        scanf("%d", &a[i]);
    }

    while(i = 0, a[i], i++)
    {
        j = 0;
        if a[i] == 1
        {
            j += 1;
        }
    }

    printf("Enter the number of consecutive 1's: ");
    scanf("%d", &j);

    return 0;