#include <stdio.h>
int main ()
{
int a[5], i = 0, front =0, rear = 0,j;
char b;
printf ("Enter Y if you wish to add elements to the queue\n");
// scanf ("%c", &b);
// if (b == "Y")
// rear = rear + 1;
// front = front + 1;
while (rear < 5)
{
scanf ("%d",&j);
a[rear]=j;
rear=rear+1;
}
printf ("The data you entered is\n");
while (i < 5)
{
printf ("%d\n",&a[i]);
i++;
}
}