exercice101p74.py

Created by frederic-junier

Created on November 12, 2019

319 Bytes

Algorithme de seuil exercice 101p74 manuel Barbazo


# Type your text here
def N(t):
  return 3 * t ** 2 + 69 * t + 150
  
def combien_de_temps(s):
  """Retourne au bout
  de combien de temps 
  le nombre de bacéries aura dépassé
  s"""
  t = 0
  while N(t) <= s:
    t = t + 1
  return t
  
s = float(input("Seuil ? "))
print(combien_de_temps(s))

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.