Write a c program to accept an array of 5 integer and print the reverse of the array addition

Array of 5 integers and print the reverse of the array addition

#include<stdio.h>
#include<conio.h>
main()
{
int i,n,bca[5],sum=0;
printf("enter the number of element");
for(i=0;i<5;i++);
{
scanf("%d",bca[i]);
sum=sum+bca[i];
}
printf("the sum of the array element are%d",sum);
getch();
}

Post a Comment

0 Comments