menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
NEED HELP ASAP JAVA multiple choice How many times will the following loop repeat? int num = 49; while (num > 0) { if (num % 2 == 0) { num++; } else { num-- } } A. 21 B. 22 C…
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
NEED HELP ASAP JAVA multiple choice How many times will the following loop repeat? int num = 49; while (num > 0) { if (num % 2 == 0) { num++; } else { num-- } } A. 21 B. 22 C…
asked
Mar 25, 2021
61.4k
views
0
votes
NEED HELP ASAP JAVA
multiple choice
How many times will the following loop repeat?
int num = 49;
while (num > 0)
{
if (num % 2 == 0)
{
num++;
}
else
{
num--
}
}
A. 21
B. 22
C. 20
D. Infinite Loop
E. 23
Computers and Technology
high-school
Nick Kennedy
asked
by
Nick Kennedy
8.4k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
4
votes
I think is C tbh sorry if that’s wrong my fault
Henry Ma
answered
Mar 30, 2021
by
Henry Ma
7.6k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jan 22, 2024
185k
views
Complete the following Java statement that assigns to the int variable num the decimal equivalent of the given binary string. Move the code pieces in place to build statement. num = _____ . ______ (______,
Litherum
asked
Jan 22, 2024
by
Litherum
7.8k
points
Computers and Technology
high-school
1
answer
2
votes
185k
views
asked
Feb 17, 2024
166k
views
What is the purpose of the following code in Java? class Main { public static void main(String[] args) { int num = 1234567, reversed = 0; for(; num != 0; num /= 10) { int digit = num % 10; reversed = reversed
Peter Birdsall
asked
Feb 17, 2024
by
Peter Birdsall
8.2k
points
Computers and Technology
high-school
1
answer
2
votes
166k
views
asked
Aug 14, 2022
66.5k
views
Write a for loop to populate array userGuesses with NUM GUESSES integers. Read integers using Scanner. Ex If NUM GUESSES is 3 and user enters 9 5 2, then userGuesses is 19, 5, 2) 1 import java til. Sca
Cullan
asked
Aug 14, 2022
by
Cullan
8.4k
points
Computers and Technology
college
1
answer
5
votes
66.5k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org