Question: static final int EndVal = - 1 ; int double; int num = console.nextInt ( ) ; while ( num ! = EndVal ) {

static final int EndVal =-1;
int double;
int num = console.nextInt();
while (num != EndVal)
{
double = num *2;
System.out.println(double);
num = console.nextInt();
}
The above code is an example of a(n) while loop.
flag-controlled
counter-controlled
EOF-controlled
sentinel-controlled
static final int EndVal = - 1 ; int double; int

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!