Home > other >  Python item for bosses
Python item for bosses

Time:10-08

1 yuan 1 bottle of water, two bottles in a bottle of water, program is used to implement the input amount, the number of get water!

CodePudding user response:

 q=int (input (" please enter the money: ")) 
S=q * 1
While the q & gt; 1:
S +=q//2
Q=2 + q//q % 2

Print (s)

CodePudding user response:

reference 1st floor chuifengde response:
 q=int (input (" please enter the money: ")) 
S=q * 1
While the q & gt; 1:
S +=q//2
Q=2 + q//q % 2

Print (s)

Thank you bosses to solve!!!!!!!!!!!!!!!
  • Related