output : int a=5;
for(int i=0;i<7;i++)
{
a=a*i;
i=i+3;
System.out.print(a+" ");
}
Answers
Answered by
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
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
Math,
1 month ago
Math,
1 month ago
Science,
2 months ago
Math,
9 months ago
India Languages,
9 months ago