Write a c program to accept an array of 5 integer and print the reverse of the array addition - CodeTextPro | Web Tutorial | Technology

CodeTextPro.com Provides - Web design, Technology gyan, Digital marketing, Online earnings, Seo, Adsense, Technology news, Motivation and inspiration, Latest Technology Affairs, Gadgets, Blogging

Saturday, January 5, 2019

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

No comments:

Post a Comment