Computer Science, asked by shivangi726, 2 months ago

output : int a=5;

for(int i=0;i<7;i++)

{

a=a*i;

i=i+3;

System.out.print(a+" ");

}​

Answers

Answered by ajb7899
0

Answer:

0 0 0

Explanation:

Since the value of a the very first time is zero

hence a will always become zero

If it helps kindly mark it as 5 stars giving the answer as brainliest.

Answered by anindyaadhikari13
0

ANSWER.

  • The output for the question is - 0 0 0

EXPLANATION.

The initial value of a is - 5

The given loop iterates 3 times (i = 0, 3, 6)

When i = 0,

→ a = a * i

→ a = 0

> a is printed.

Now, when i = 3, 6, a remains 0 as anything multiplied by 0 gives 0 only.

So, 0 is displayed 3 times.

Hence, the final output is - 0 0 0

Similar questions