Each time a loop is executed is called an ___.
iteration
While loop syntax
syntax:
//initialization
while (//condition>) {
//statements
//update
}
ex:
int j=0;
while (j <= 5){
System.out.println(j);
j++;
}
Return a random int between 0 & 9
(int)(Math.random() * 10)
Sentinel value definition
a specific input value to signify the end of the loop.
What type of value do you avoid using in loops for equality checking
Floating point values