hw_calcul.py

Created by elodie-gamot

Created on February 14, 2022

293 Bytes


from math import *

E1=int(input("E1="))
E2=int(input("E2="))
E3=int(input("E3="))
pop=E1+E2+E3
p=(E1+0.5*E2)/pop
q=(E3+0.5*E2)/pop
E1=pop*p**2
E2=2*p*q*pop
E3=pop*q**2
print("A la génération suivante :")
print("E1=",round(E1))
print("E2=",round(E2))
print("E3=",round(E3))