# include<stdio.h>
main()
{
int i,b=0;
int c[10]= {1,2,3,4,5,6,7,8,9,10};
for(i=0;i<10;i++)
{
b+=c[i];
printf(“%d”,b);
}
}
Answers
Answered by
0
Output of the program :-
1
3
6
10
15
21
28
36
45
55
There is an error in the program :
main()
^here returning value type of function is not defined.
It could be:
void main()
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
Political Science,
2 months ago
Biology,
4 months ago
Biology,
9 months ago
History,
9 months ago