Java
Convert the following for loop into a whileloop.
int sum = 0;
for (int i = 8; i > 0; i–)
{
sum = sum + i
}
Expert Answer
An answer will be send to you shortly. . . . .
Java
Convert the following for loop into a whileloop.
int sum = 0;
for (int i = 8; i > 0; i–)
{
sum = sum + i
}
An answer will be send to you shortly. . . . .