Computer Science, asked by venkatvinay015, 3 months ago

# 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 MasterSolverX
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