Computer Science, asked by wh0cares69, 3 months ago

Is
for (i=1; ;i++); System.out.println(i);
syntax or logical error?​

Answers

Answered by vivekydv1109
0

Explanation:

system is print 0

becausefor(i=1;i<=10;i+1)

printf("%d\n",i);

i++;

this type given correct

Attachments:
Similar questions