Computer Science, asked by namelesshuman00, 2 months ago

int i, x=1;
for (i=1; i<=5; i+=2)
{
x=x+i;
System.out.println(x);
}
please answer no spam if u spam then I'll report your account..​

Answers

Answered by anasarfeen
1

Answer

:

4

9

Explanation:

here x is 1 after it goes In loop it becomes .1+3=4

then 4+5=9

Similar questions