Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Hello dear, can you please help me in this assignment?

Hello dear, can you please help me in this assignment?

  1. What is the output of the following code snippet :

 int i = 1; 

 while (i != 8) 

 { 

 System.out.println("" + i); 

  i = i + 2; 

 } 

  1. Convert the following for loop into a while loop.

int sum = 0; 

for (int i = 8; i > 0; i--) 

{

  sum = sum + i 

}

  1. creat a while loop that computes the sum of all integers from 1 to 15. 
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question