Computer Science, asked by Unknown1000, 9 months ago

Write an equivalent while loop for the following for loop.

For(int j=2,sum=0;j less than equal to 20;j=j+2)
Sum+=j;

Answers

Answered by ankanchakraborty14
25

Explanation:

int j=2,sum=0;

while(j<=20)

{

sum=sum+j;

j=j+2;

}

Answered by ishuhaikya
4

Answer:

int j=2,sum=0;

while(j less than equal to 20){

Sum+=j;

j=j+2;

}

Similar questions