Write a statement that terminates the current loop when the value of the int variables x. and y.are equal

Write a statement that terminates the current loop when the value of the int variables x. and y.are equal

LANGUAGE: JAVA

CHALLENGE:

Write a statement that terminates the current loop when the value of the int variables x. and y.are equal

SOLUTION:

if (x == y) break; // exit loop

Add comment