|
|
@ -17,7 +17,30 @@ def rectangle(lignes: int, colonnes: int): |
|
|
|
print("#", end="") |
|
|
|
print() |
|
|
|
|
|
|
|
#Triangle |
|
|
|
def triangle(lignes): |
|
|
|
print("@") |
|
|
|
print("@@") |
|
|
|
espace = 0 |
|
|
|
for ligne in range(2,lignes): |
|
|
|
if ligne < lignes - 1: |
|
|
|
print("@",end="") |
|
|
|
espace +=1 |
|
|
|
for loop in range(espace): |
|
|
|
print(" ",end="") |
|
|
|
|
|
|
|
print("@") |
|
|
|
else: |
|
|
|
for loop in range(lignes): |
|
|
|
print("@",end="") |
|
|
|
print() |
|
|
|
|
|
|
|
|
|
|
|
#ligne(int(input())) |
|
|
|
rectangle(10, 20) |
|
|
|
ligneNbLignes = int(input()) |
|
|
|
rectangleNbLignes = int(input()) |
|
|
|
rectangleNbColonnes = int(input()) |
|
|
|
triangleNbLignes = int(input()) |
|
|
|
ligne(ligneNbLignes) |
|
|
|
print() |
|
|
|
rectangle(rectangleNbLignes, rectangleNbColonnes) |
|
|
|
print() |
|
|
|
triangle(triangleNbLignes) |