# Exercice 1
Prenom = input(“Nom de l’étudiant : “)
Nombre_d_annees = input(“Âge de l’étudiant : “)
Print(“Salut”, prenom + “, tu as”, nombre_d_annees, “ans. Bienvenue à l’université de Douala !”)
# Exercice 2
Naissance = int(input(“En quelle année es-tu né ? “))
Age_actuel = 2025 – naissance
Print(“Tu as”, age_actuel, “ans.”)
# Exercice 3
Long = float(input(“Indique la longueur : “))
Larg = float(input(“Indique la largeur : “))
Aire = long * larg
Perim = 2 * (long + larg)
Print(“Aire =”, aire)
Print(“Périmètre =”, perim)
# Exercice 4
Nb1 = float(input(“Entrer la base : “))
Nb2 = float(input(“Entrer l’exposant : “))
Resultat = nb1 ** nb2
Print(“Résultat :”, resultat)
# Exercice 5
X = float(input(“Premier nombre : “))
Y = float(input(“Deuxième nombre : “))
Print(“Addition :”, x + y)
Print(“Multiplication :”, x * y)
Print(“Soustraction :”, x – y)
If y != 0:
Print(“Division :”, x / y)
Else:
Print(“Division impossible”)
# Exercice 6
Total = 0
For I in range(1, 6):
Note = float(input(f”Saisir la note {i} : “))
Total += note
Moyenne = total / 5
Print(“Total :”, total)
Print(“Moyenne :”, moyenne)
# Exercice 7
R = float(input(“Rayon de la sphère : “))
Volume = (4 * 3.1416 * r**3) / 3
Print(“Le volume de la sphère est :”, volume)
# Exercice 8
Age_enfant = int(input(“Quel âge a l’enfant ? “))
If 6 <= age_enfant <= 7:
Print(“Catégorie : POUSSIN”)
Elif 8 <= age_enfant <= 9:
Print(“Catégorie : PUPILLE”)
Elif 10 <= age_enfant <= 11:
Print(“Catégorie : MINIME”)
Elif age_enfant > 12:
Print(“Catégorie : CADET”)
Else:
Print(“Pas de catégorie”)
# Exercice 9
N1 = float(input(“Note 1 : “))
N2 = float(input(“Note 2 : “))
N3 = float(input(“Note 3 : “))
Moy = (n1 + n2 + n3) / 3
Print(“Moyenne :”, moy)
If moy >= 16:
Print(“Mention : Très Bien”)
Elif moy >= 14:
Print(“Mention : Bien”)
Elif moy >= 12:
Print(“Mention : Assez Bien”)
Elif moy >= 10:
Print(“Mention : Passable”)
Else:
Print(“Mention : Insuffisant”)
# Exercice 10
Prix_base = float(input(“Prix hors taxe : “))
Type_tva = input(“Catégorie (A, B ou C) : “).upper()
If type_tva == “A”:
Taux = 0.07
Elif type_tva == “B”:
Taux = 0.20
Elif type_tva == “C”:
Taux = 0.25
Else:
Taux = 0
Print(“Catégorie invalide ! TVA considérée comme 0%.”)
Prix_total = prix_base * (1 + taux)
Print(“Prix TTC :”, prix_total)