Write the output of following:
int n;
for (n=0; n<=10; n++)
{
System.out.println(n);
}
System.out.println(n*2);
Answers
Answered by
1
Answer:
2,4,6,8
Explanation:
basically yung n output mo which is dineclare as 0 then yung n input mo tinimes niya by 2 so 0 x 2 = 2 then so on 2x2 = 4 then 4 x2 = 8 and 8 x 2 is 16 so mag-eend na doon yung output mo since mas malaki yung 16 sa 10
Similar questions