Informatique

Question

bonsoir mes amis j ai un devoir de l informatique
Exercice:
écrire un algorithme qui demande le rayon d un cercle pour calculer sa surface.
et merci

1 Réponse

  • Bonjour,

    Explications :

    import math

    rayon = input("Rayon du cercle :")

    surface = math.pi*(rayon**2)

    print("La surface du cercle est : " + surface)

    PS : Si tu le veux dans un autre langage que le python fait moi signe.

Autres questions