//this is a program to accept the print the value of array a
#include<stdio.h>
#include<conio.h>
void main()
{
int a[4],i;
printf("\n\nEnter the Values of Array A:- ");
for(i=0;i<4;i++)
{
printf("\n\nEnter Number: ");
scanf("%d",&a[i]);
}
printf("\n\nDisplaying the values of the Array A:-\n\n");
for(i=0;i<4;i++)
{
printf(" %d ",a[i]);
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int a[4],i;
printf("\n\nEnter the Values of Array A:- ");
for(i=0;i<4;i++)
{
printf("\n\nEnter Number: ");
scanf("%d",&a[i]);
}
printf("\n\nDisplaying the values of the Array A:-\n\n");
for(i=0;i<4;i++)
{
printf(" %d ",a[i]);
}
getch();
}