Computer Science, asked by subrao8888, 7 days ago

Convert the following for loop" to "while"
for(int i=1;i<=10;i++)
{
s=s+i;
}
System.out.print(s),​

Answers

Answered by debayudhbasu
0

Answer:

int I=1;

while(I<=10)

{

S=s+I;

I++;

}

System.out.println(s);

Similar questions