Computer Science, asked by wasimkhan1996, 3 months ago

write a program to input 10 numbers to array and find out sum of these numbers​

Answers

Answered by kishore7869
1

Explanation:

#include <stdio.h>

int main()

{

int i,arr[10],sum=0;

printf("Enter 10 elements:");

for(i=0;i<10;++i)

scanf("%d",&arr[i]);

for(i=0;i<10;++i)

sum=sum+arr[i];

printf("Sum of numbers is:%d",sum);

return 0;

}

Similar questions