menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
For num in range (1,10) : if num is %2 = = 0: print (num)
asked
Jan 26, 2022
99.1k
views
4
votes
For num in range (1,10) : if num is %2 = = 0: print (num)
Mathematics
high-school
Honestann
asked
by
Honestann
7.7k
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
3
votes
yfd sat fltfurjbhviccyvihkjobkb 47 I have
Jamie Shepherd
answered
Jan 31, 2022
by
Jamie Shepherd
7.7k
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
Aug 5, 2022
206k
views
System.out.print(); System.out.print("Enter a number less than 100: "); num = Expo.enterInt(); for (int i=1; I <= num; I++){ if(num %2!=0) System.out.println(num + " is odd"); else System.ouy.println(num +"is even") } System.out.println(); } } Say I enter 5. The loop makes 5 show up 5 times instead of the numbers 1-5 saying if it's even or odd
Enryu
asked
Aug 5, 2022
by
Enryu
9.6k
points
Computers and Technology
high-school
1
answer
11
votes
206k
views
asked
Jul 2, 2022
86.9k
views
The following segment of code is meant to remove the even numbers from an ArrayList list and print the results: int counter = 0; while(counter < list.size()) { if(list.get(counter) %2 == 0) { list.remove(counter); } counter++; } System.out.println(list.toString()); The method as written, however, is incorrect. Which ArrayList(s) list would prove that this method was written incorrectly? I. [1, 2, 3, 4, 5] II. [2, 4, 5, 6, 7] III. [2, 4, 6, 8, 10] IV. [2, 5, 6, 7, 8] III only II and IV II only I and IV II and III
Shaneparsons
asked
Jul 2, 2022
by
Shaneparsons
8.1k
points
Computers and Technology
college
2
answers
2
votes
86.9k
views
asked
Jul 27, 2024
46.4k
views
Is the following solution correct to solve the critical section problem? Please briefly explain. proc(int i) { while(TRUE) { compute: while(flag[(i+1)%2]); flag[i] = TRUE; critical_section; flag[i] = FALSE;
Kekert
asked
Jul 27, 2024
by
Kekert
8.5k
points
Computers and Technology
high-school
1
answer
4
votes
46.4k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
How do you can you solve this problem 37 + y = 87; y =
What is .725 as a fraction
How do you estimate of 4 5/8 X 1/3
A bathtub is being filled with water. After 3 minutes 4/5 of the tub is full. Assuming the rate is constant, how much longer will it take to fill the tub?
i have a field 60m long and 110 wide going to be paved i ordered 660000000cm cubed of cement how thick must the cement be to cover field
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org