You are on page 1of 2

#include <stdio.

h>

#include <stdlib.h>

int f,r=0;

int a[100];

int size;

void enqueue()

{int n;

if(r==size)

printf("Overflow");

printf("Enter value \n");

scanf("%d",&n);

a[r]=n;

r++;

void display()

printf("The numbers are \n");

for(int i=f;i<size;i++)

printf("%d \n",a[i]);

void main()

int n,data,i=0;
printf("Enter the number of values you want to enter");

scanf("%d",&size);

while(i<size)

enqueue();

i++;

display();

You might also like