+1 vote
in Class 12 by kratos

Find the syntax error(*), if any in the following program; Rewrite the code after making the correction.

int sum;value;incr;

int I;

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

sum+=i;

incr++;

1 Answer

+5 votes
by kratos
 
Best answer

int sum, value, incr;

int I;

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

sum+=I;

incr++;

...