ehsanullahkhalili ehsanullahkhalili
  • 21-03-2024
  • Computers and Technology
contestada

Value user_num is read from input. Write a while loop that iterates until user_num is negative. In each iteration:

Update value result as follows:
If user_num is not divisible by 5, output 'win' and increment result.
Otherwise, output 'lose' and do not update result.
Then, read a value from input as an integer into variable user_num.

Respuesta :

Otras preguntas

I need help turning this fraction into a decimal help!
The chemical formula for aluminum + oxygen
Nana can pack a bag of groceries in six tenths of a minute. At that rate, how many bags of groceries can she pack in 15 minutes?
Which mapping best represents the function y = 2x + 1 when the replacement set for x is {-1,0,3}?
What multiplies to get -1040 and adds to get 109?
tom sells baseball cards at 10 for 35 cents. is that a better deal than 12 for 40 cents?
Allie wants to arrange her flower garden in 8 equal rows.she buys 60 plants. what is the greatest number of plants she can put in each row?
Physician who discovered arteries and veins
what are 3 different types of clinics?
Why was the Battle of Stalingrad a significant event in World War II? The battle stopped the Germans from advancing further east. The battle enabled the Soviets