Hello dear, can you please help me in this assignment? | Cheap Nursing Papers

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. 

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp