JAVA What will be the values of x and y after the following code is executed?   int x  =  10, y  =  20; while (y  <  100) {    x += y;    y += 20; }     x = _____________________    y = _______________________

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question

JAVA

What will be the values of x and y after the following code is executed?

 

int x  =  10, y  =  20;

while (y  <  100)

{

   x += y;

   y += 20;

}

 

 

x = _____________________    y = _______________________

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT