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

Codetextpro Provides free Web tutorial, HTML, CSS, C, C++, Java, JavaScript, PHP, MySql, Python, Program, Programming Notes, Programming Questions and more.

Programming

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