Convert the following for loop" to "while"
for(int i=1;i<=10;i++)
{
s=s+i;
}
System.out.print(s),
Answers
Answered by
0
Answer:
int I=1;
while(I<=10)
{
S=s+I;
I++;
}
System.out.println(s);
Similar questions