Which of the following loops will print the odd numbers between 0 and 20?
A) int num = 1;
While (num < 20)
{
System.out.print (num + " ") ;
Num += 2;
}
B) int num = 1;
While (num < 20)
{
System.out.print (num + " ") ;
Num ++;
}
C)
Int num = 0;
While (num < 20)
{
System.out.print (num + " ") ;
Num += 2;
}
D)
Int num = 1;
While (num < 20)
{
Num += 2;
System.out.print (num + " ") ;
}
Correct Answer:
Verified
Q53: How many times does the following loop
Q54: What will be printed by the statements
Q55: What will be printed by the statements
Q55: Which of the following for loops is
Q56: Which of the following conditions can be
Q57: Which of the following is considered a
Q60: Is the code snippet written below legal?
Q61: Assume the following variable has been declared
Q62: How many times is the text "Let's
Q63: Given the following code snippet, what should
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents