#include<stdio.h>
#include<conio.h>
void input(int [],int);
void display(int [],int);
void main()
{
int arr[10],i,n;
printf("Enter the size of array=");
scanf("%d",&n);
input(arr,n);
display(arr,n);
getch();
}
void input(int arr[],int n)
{
int i;
for(i=0;i<n;i++)
{
printf("\nEnter element=");
scanf("%d",&arr[i]);
}
}
void display(int arr[],int n)
{
int i;
printf("\nThe array element are=");
for(i=0;i<n;i++)
{
printf("\n%d",arr[i]);
}
}
void sum(int arr[],int n)
{
int i,sum=0;
for(i=0;i<n;i++)
{
sum=sum+arr[i];
}
printf("\nThe sum=%d",sum);
}


We also provide on demand projects in many languages, it can be school projects or commercial projects. You can write us on knowledgeforyou2022@gmail.com

Leave a Reply

Your email address will not be published.