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
25
Explanation:
int j=2,sum=0;
while(j<=20)
{
sum=sum+j;
j=j+2;
}
Answered by
4
Answer:
int j=2,sum=0;
while(j less than equal to 20){
Sum+=j;
j=j+2;
}
Similar questions