menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Rewrite the following program segment using a while loop instead of a for loop. for(i=0;i<100;i++){ if (i%2===0){ print (i) } }
asked
Apr 14, 2022
190k
views
0
votes
Rewrite the following program segment using a while loop instead of a for loop.
for(i=0;i<100;i++){
if (i%2===0){
print (i)
}
}
Computers and Technology
college
NonDucor
asked
by
NonDucor
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
2
votes
Answer:
while i=0 or i<100:
if (i%2==0):
print(i)
Lord Windy
answered
Apr 19, 2022
by
Lord Windy
8.8k
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
Apr 14, 2022
190k
views
Rewrite the following program segment using a while loop instead of a for loop. for(i=0;i<100;i++){ if (i%2===0){ print (i) } }
NonDucor
asked
Apr 14, 2022
by
NonDucor
8.4k
points
Computers and Technology
college
1
answer
0
votes
190k
views
asked
Apr 14, 2022
190k
views
Rewrite the following program segment using a while loop instead of a for loop. for(i=0;i<100;i++){ if (i%2===0){ print (i) } }
NonDucor
asked
Apr 14, 2022
by
NonDucor
8.4k
points
Computers and Technology
college
1
answer
0
votes
190k
views
asked
Aug 2, 2022
66.8k
views
Convert the given for loop to while loop and find the output of the program assuming the value entered for num is 15. num = int (input ("Enter a value")) sum =0 count=0 for i in range (1, num): if i%2
Niyamat Ullah
asked
Aug 2, 2022
by
Niyamat Ullah
8.3k
points
Computers and Technology
high-school
1
answer
4
votes
66.8k
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
“What does it mean when we “rework” copyrighted material?”
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Explain why binary codes are used to represent characters, numbers and symbols :)
What is an example of a dedicated computer system?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org