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

Need to simplify the equation
What are some similarities and differences between the Byzantine Empire (Eastern Roman) and Medieval Western Europe in the areas of: Political aspects, economic
The SAT does not assess reading comprehension.True/False
How many dekameters are in a meter?
write an equation of the line with the same slope as the line given by 5x+2y=8 and as the same y-intercept as 3x-7y=10
How are differences usually settled in a democracy?
2L 5mL = HOW MANY mL
145 300 610 1230 In the above sequence every term after the first is formed by multiplying by x and then adding y, where x and y are positive integers. What is
what powers Earth's rock cycle
an analogue clock is gaining three minutes every hour. If you set it to the correct time at 6pm on Saturday, when will it show the correct time again?