maj
This commit is contained in:
parent
6767aefa4e
commit
a0d0d4d8b7
@ -17,7 +17,30 @@ def rectangle(lignes: int, colonnes: int):
|
|||||||
print("#", end="")
|
print("#", end="")
|
||||||
print()
|
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()
|
||||||
|
|
||||||
|
ligneNbLignes = int(input())
|
||||||
#ligne(int(input()))
|
rectangleNbLignes = int(input())
|
||||||
rectangle(10, 20)
|
rectangleNbColonnes = int(input())
|
||||||
|
triangleNbLignes = int(input())
|
||||||
|
ligne(ligneNbLignes)
|
||||||
|
print()
|
||||||
|
rectangle(rectangleNbLignes, rectangleNbColonnes)
|
||||||
|
print()
|
||||||
|
triangle(triangleNbLignes)
|
Loading…
x
Reference in New Issue
Block a user