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();
}
#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();
}
0 Comments