primeiro commit

This commit is contained in:
2026-04-20 16:34:44 -03:00
commit ea54c8c3c7
2 changed files with 20 additions and 0 deletions

14
area_circulo.py Normal file
View File

@@ -0,0 +1,14 @@
from math import pi
import sys
def circulo(raio):
return pi * float(raio) ** 2
if __name__ == '__main__':
if len(sys.argv) < 2:
print("Informe raio do circulo")
print("Sintaxe: {} <raio>".format(sys.argv[0]))
else:
raio = sys.argv[1]
area = circulo(raio)
print('Area do circulo', area)