C program to calculate sum and product of all elements in an array by filling up required code in editable section
Answers
Answered by
0
int sum=0;
for(int i =0; i<size; i++)
sum+=a[i];
cout<<sum;
for(int i =0; i<size; i++)
sum+=a[i];
cout<<sum;
Similar questions
CBSE BOARD XII,
8 months ago
Computer Science,
8 months ago
Math,
1 year ago
Business Studies,
1 year ago
Economy,
1 year ago
Math,
1 year ago