#include<stdio.h>
#include<conio.h>
#define max_size 100
void main()
{
int arr[max_size];
int i,n;
clrscr();
printf("\nEnter the number of elment of an array :- ");
scanf("%d",&n);
printf("\nEnter the element of an array :- \n");
for(i=0;i<n;i++)
{
scanf("%d",&arr[i]);
}
printf("\nDisplay array element :- \n");
for(i=0;i<n;i++)
{
printf("Value of arr[%d] :- %d \n",i,arr[i]);
}
getch();
}
Output :-
Back to 'C Language Programs'
No comments:
Post a Comment