orangeloverc
orangeloverc orangeloverc
  • 27-01-2021
  • Computers and Technology
contestada

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)
}
}​

Respuesta :

jesusm1
jesusm1 jesusm1
  • 27-01-2021

Answer:

while i=0 or i<100:

if (i%2==0):

print(i)

Answer Link

Otras preguntas

A triangle with the sides 6,8 and 10 . what kind of triangle is it ?
What are sentencies that contain the word ottoman
Beethoven studied with which other composer
Explain what happens when a system of two linear equations is inconsistent. what effect does it have in obtaining a​ solution? what would the graph of such a sy
Select the option for "?" that continues the pattern in each question. 3, -6, 12, 4, 20, ?
According to the poem "Thanatopsis," what can nature teach people about life and death?
Use the following passage to answer the question.(1) Water is something most of us take for granted. (2) If we need a cold drink or want to take a shower, water
The band boosters collected $2400 from the sale of hamburgers and hotdogs.The amount earned from hamburgers and hotdogs were equal.A hamburger sold for three do
Please help me with this
What is 2,654 rounded to the nearest hundred?a 2,600 b 2,650 c 2,660 d 2,700