Program : -
#include<stdio.h>
#include<conio.h>
void main()
{
int a[10],i=0;
printf("Enter your 10 array element :");
for(i=0;i<10;i++)
{
saanf("%d",&a[i]);
}
printf("Your array element is :");
for(i=0;i<10;i++)
{
printf("%d ",a[i]);
}
getch();
}
Output :-
Enter your array element : 8 9 7 6 5 9 4 2 3 1
Your array element is : 8 9 7 6 5 9 4 2 3 1
#include<stdio.h>
#include<conio.h>
void main()
{
int a[10],i=0;
printf("Enter your 10 array element :");
for(i=0;i<10;i++)
{
saanf("%d",&a[i]);
}
printf("Your array element is :");
for(i=0;i<10;i++)
{
printf("%d ",a[i]);
}
getch();
}
Output :-
Enter your array element : 8 9 7 6 5 9 4 2 3 1
Your array element is : 8 9 7 6 5 9 4 2 3 1